Skip to content

Commit 303a680

Browse files
committed
Minor fixes
1 parent 47446c7 commit 303a680

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@
148148
"./Highlight": "./dist/Highlight.js",
149149
"./Header": "./dist/Header.js",
150150
"./Footer": "./dist/Footer.js",
151-
"./File": "./dist/File.js",
152151
"./Download": "./dist/Download.js",
153152
"./Display": "./dist/Display.js",
154153
"./Checkbox": "./dist/Checkbox.js",

src/Download.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
import React, { memo, forwardRef, type CSSProperties } from "react";
1+
import React, { memo, forwardRef, type CSSProperties, type ReactNode } from "react";
22
import { symToStr } from "tsafe/symToStr";
33
import { assert } from "tsafe/assert";
44
import type { Equals } from "tsafe";
55
import { fr } from "./fr";
66
import { cx } from "./tools/cx";
7-
import { getLink } from "./link";
8-
import { RegisteredLinkProps } from "./link";
7+
import { getLink, type RegisteredLinkProps } from "./link";
98

109
export type DownloadProps = {
1110
className?: string;
1211
style?: CSSProperties;
13-
details: string;
14-
label: string;
12+
details: ReactNode;
13+
label: ReactNode;
1514
linkProps: RegisteredLinkProps;
1615
classes?: Partial<Record<"root" | "wrapper" | "link" | "details", string>>;
1716
};

0 commit comments

Comments
 (0)