fix(web): use import/export-appropriate icons for theme buttons (#5964)
This commit is contained in:
1 parent
9821bca1ce
commit
fbcae59ef5
2 files changed
+4
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { PlusIcon, UploadIcon } from "lucide-react";
|
||||
import { DownloadIcon, PlusIcon } from "lucide-react";
|
||||
import type { ChangeEvent, DragEvent, UIEvent } from "react";
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { cn } from "../../lib/utils";
|
||||
@@ -456,7 +456,7 @@ export function ThemeImportDialog({
|
||||
);
|
||||
const chooseButton = (label = "Choose files") => (
|
||||
<Button disabled={isReading} size="sm" variant="outline" onClick={openFilePicker}>
|
||||
<UploadIcon />
|
||||
<DownloadIcon />
|
||||
{isReading ? "Reading…" : label}
|
||||
</Button>
|
||||
);
|
||||
|
||||
@@ -183,7 +183,7 @@ function ThemeLibraryCard({
|
||||
onDownload();
|
||||
}}
|
||||
>
|
||||
<DownloadIcon />
|
||||
<UploadIcon />
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
@@ -570,7 +570,7 @@ export function ThemeLibrary({
|
||||
Create theme
|
||||
</Button>
|
||||
<Button size="xs" variant="outline" onClick={() => onImportOpenChange(true)}>
|
||||
<UploadIcon />
|
||||
<DownloadIcon />
|
||||
Import theme
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user