Skip to content

Commit ffa5bce

Browse files
fix(web): rename theme card add button to install
1 parent 7fa6c8c commit ffa5bce

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎apps/web/src/components/settings/ThemeSearchSection.tsx‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
2+
DownloadIcon,
23
ExternalLinkIcon,
34
PaletteIcon,
4-
PlusIcon,
55
RefreshCwIcon,
66
SearchIcon,
77
ShieldCheckIcon,
@@ -305,8 +305,8 @@ export function ThemeSearchSection({
305305
const isInstalled = getCustomThemes().some(
306306
(theme) => theme.collection?.id === extension.collectionId,
307307
);
308-
const action = isInstalled ? "Update" : "Add";
309-
const progressAction = isInstalled ? "Updating" : "Adding";
308+
const action = isInstalled ? "Update" : "Install";
309+
const progressAction = isInstalled ? "Updating" : "Installing";
310310
return (
311311
<article
312312
className="group flex min-w-0 flex-col gap-3 rounded-xl border border-border/70 bg-card/60 p-3 transition-colors hover:bg-accent/20"
@@ -349,7 +349,13 @@ export function ThemeSearchSection({
349349
variant="outline"
350350
onClick={() => void handleInstall(extension, false)}
351351
>
352-
{isInstalling ? <Spinner /> : isInstalled ? <RefreshCwIcon /> : <PlusIcon />}
352+
{isInstalling ? (
353+
<Spinner />
354+
) : isInstalled ? (
355+
<RefreshCwIcon />
356+
) : (
357+
<DownloadIcon />
358+
)}
353359
{isInstalling ? `${progressAction}...` : action}
354360
</Button>
355361
</div>

0 commit comments

Comments
 (0)