Added language and theme switching function to login page and homepage

This commit is contained in:
choizhang
2025-03-12 00:42:12 +08:00
parent e5214f1a70
commit 7bf2d51bd0
9 changed files with 131 additions and 27 deletions

View File

@@ -1,5 +1,4 @@
import { useState, useCallback } from 'react'
import ThemeProvider from '@/components/ThemeProvider'
import MessageAlert from '@/components/MessageAlert'
import ApiKeyAlert from '@/components/ApiKeyAlert'
import StatusIndicator from '@/components/graph/StatusIndicator'
@@ -52,7 +51,6 @@ function App() {
}, [message, setApiKeyInvalid])
return (
<ThemeProvider>
<main className="flex h-screen w-screen overflow-x-hidden">
<Tabs
defaultValue={currentTab}
@@ -79,7 +77,6 @@ function App() {
{message !== null && !apiKeyInvalid && <MessageAlert />}
{apiKeyInvalid && <ApiKeyAlert />}
</main>
</ThemeProvider>
)
}