diff --git a/web/containers/Layout/BottomBar/index.tsx b/web/containers/Layout/BottomBar/index.tsx index dfd1b324d..ec7a8081b 100644 --- a/web/containers/Layout/BottomBar/index.tsx +++ b/web/containers/Layout/BottomBar/index.tsx @@ -8,7 +8,7 @@ import { TooltipContent, TooltipTrigger, } from '@janhq/uikit' -import { useAtomValue, useSetAtom } from 'jotai' +import { useAtom, useAtomValue, useSetAtom } from 'jotai' import { FaGithub, FaDiscord } from 'react-icons/fa' @@ -32,6 +32,8 @@ import { useGetDownloadedModels } from '@/hooks/useGetDownloadedModels' import useGetSystemResources from '@/hooks/useGetSystemResources' import { useMainViewState } from '@/hooks/useMainViewState' +import { serverEnabledAtom } from '@/helpers/atoms/LocalServer.atom' + const menuLinks = [ { name: 'Discord', @@ -53,6 +55,7 @@ const BottomBar = () => { const { setMainViewState } = useMainViewState() const { downloadStates } = useDownloadState() const setShowSelectModelModal = useSetAtom(showSelectModelModalAtom) + const [serverEnabled] = useAtom(serverEnabledAtom) return (
+ {logs.map((log, i) => {
+ return (
+
+ {log}
+
+ )
+ })}
+
+
- {logs.map((log, i) => {
- return (
-
- {log}
-
- )
- })}
-
-