feat: 新版webui
This commit is contained in:
1 parent
afc9c7ed8d
commit
31c0c1f4bc
201 files changed
+18454
-3422
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import { Toaster as HotToaster } from 'react-hot-toast'
|
||||
|
||||
import { useTheme } from '@/hooks/use-theme'
|
||||
|
||||
export const Toaster = () => {
|
||||
const { isDark } = useTheme()
|
||||
|
||||
return (
|
||||
<HotToaster
|
||||
toastOptions={{
|
||||
style: {
|
||||
borderRadius: '20px',
|
||||
background: isDark ? '#333' : '#fff',
|
||||
color: isDark ? '#fff' : '#333'
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Toaster
|
||||
Reference in new issue
Block a user