diff --git a/uikit/src/button/styles.scss b/uikit/src/button/styles.scss
index 08b59537f3..17df7381f3 100644
--- a/uikit/src/button/styles.scss
+++ b/uikit/src/button/styles.scss
@@ -12,7 +12,7 @@
}
&-outline {
- @apply border-input hover:bg-accent hover:text-accent-foreground border bg-transparent;
+ @apply border-input hover:bg-primary hover:text-primary-foreground border bg-transparent;
}
&-secondary {
@@ -20,7 +20,7 @@
}
&-ghost {
- @apply hover:bg-accent hover:text-accent-foreground;
+ @apply hover:bg-primary hover:text-primary-foreground;
}
&-sm {
diff --git a/uikit/src/command/styles.scss b/uikit/src/command/styles.scss
index cbcbbf4d6a..80171ef503 100644
--- a/uikit/src/command/styles.scss
+++ b/uikit/src/command/styles.scss
@@ -25,7 +25,7 @@
}
&-list-item {
- @apply text-foreground aria-selected:bg-accent relative flex cursor-pointer select-none items-center rounded-md px-2 py-2 text-sm outline-none;
+ @apply text-foreground aria-selected:bg-primary relative flex cursor-pointer select-none items-center rounded-md px-2 py-2 text-sm outline-none;
}
&-empty {
diff --git a/uikit/src/main.scss b/uikit/src/main.scss
index 9fdca43e19..a176606890 100644
--- a/uikit/src/main.scss
+++ b/uikit/src/main.scss
@@ -27,7 +27,6 @@
}
}
-
:root {
--background: 0 0% 100%;
--foreground: 20 14.3% 4.1%;
@@ -35,9 +34,6 @@
--muted: 60 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
- --accent: 60 4.8% 95.9%;
- --accent-foreground: 24 9.8% 10%;
-
--danger: 346.8 77.2% 49.8%;
--danger-foreground: 355.7 100% 97.3%;
@@ -77,9 +73,6 @@
--muted: 12 6.5% 15.1%;
--muted-foreground: 24 5.4% 63.9%;
- --accent: 12 6.5% 15.1%;
- --accent-foreground: 60 9.1% 97.8%;
-
--danger: 346.8 77.2% 49.8%;
--danger-foreground: 355.7 100% 97.3%;
diff --git a/web/containers/Layout/TopBar/CommandListDownloadedModel/index.tsx b/web/containers/Layout/TopBar/CommandListDownloadedModel/index.tsx
index fb135c6f11..108aa8e827 100644
--- a/web/containers/Layout/TopBar/CommandListDownloadedModel/index.tsx
+++ b/web/containers/Layout/TopBar/CommandListDownloadedModel/index.tsx
@@ -73,7 +73,7 @@ export default function CommandListDownloadedModel() {
{model.name}
{activeModel && activeModel._id === model._id && (
- Active
+ Active
)}
diff --git a/web/hooks/useGetConfiguredModels.ts b/web/hooks/useGetConfiguredModels.ts
index 84ed5cc637..308d6a2e95 100644
--- a/web/hooks/useGetConfiguredModels.ts
+++ b/web/hooks/useGetConfiguredModels.ts
@@ -40,6 +40,7 @@ export function useGetConfiguredModels() {
// TODO allow user for filter
useEffect(() => {
fetchModels()
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
return { loading, models }
diff --git a/web/screens/Chat/HistoryList/index.tsx b/web/screens/Chat/HistoryList/index.tsx
index f5e5f2e7a1..c3c69fa470 100644
--- a/web/screens/Chat/HistoryList/index.tsx
+++ b/web/screens/Chat/HistoryList/index.tsx
@@ -1,7 +1,7 @@
import { useEffect } from 'react'
import { Conversation, Model } from '@janhq/core/lib/types'
-import { Button } from '@janhq/uikit'
+import { Badge, Button } from '@janhq/uikit'
import { motion as m } from 'framer-motion'
import { useAtomValue, useSetAtom } from 'jotai'
@@ -64,7 +64,7 @@ export default function HistoryList() {