Skip to content

Commit b114281

Browse files
committed
download stuff
1 parent 0be75c5 commit b114281

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/download.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface HuggingfaceModel {
1919
const HuggingfaceModels = HuggingfaceModelsRaw as Array<HuggingfaceModel>;
2020

2121
function ModelDownload({ source }: { source: HuggingfaceModel }) {
22-
const { modelFiles, setModelFiles, setModelFileKey } = useLLM();
22+
const { modelFiles, setModelFiles, modelFileKey, setModelFileKey } = useLLM();
2323
const { colorScheme } = useSystem();
2424
const { id, name, repo, branch, tags } = source;
2525

@@ -198,8 +198,8 @@ function ModelDownload({ source }: { source: HuggingfaceModel }) {
198198
color: colorScheme.secondary,
199199
},
200200
textButton: {
201-
color: colorScheme.onPrimaryContainer,
202-
backgroundColor: colorScheme.primaryContainer,
201+
color: modelFileKey === currentKey ? colorScheme.onPrimary : colorScheme.onPrimaryContainer,
202+
backgroundColor: modelFileKey === currentKey ? colorScheme.primary : colorScheme.primaryContainer,
203203
paddingVertical: 4,
204204
paddingHorizontal: 12,
205205
borderRadius: 20,

0 commit comments

Comments
 (0)