mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-15 00:36:56 +08:00
Refactor(UI) : Refactor Frontend: Unified Toasts with Sonner, Introduced Layout System, and Integrated React Router (#872)
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App.tsx'
|
||||
import { Toaster } from 'sonner'
|
||||
import './index.css'
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
<React.StrictMode>
|
||||
<Toaster
|
||||
theme="dark"
|
||||
richColors
|
||||
closeButton
|
||||
position="top-center"
|
||||
duration={2200}
|
||||
toastOptions={{
|
||||
className: 'nofx-toast',
|
||||
style: {
|
||||
background: '#0b0e11',
|
||||
border: '1px solid var(--panel-border)',
|
||||
color: 'var(--text-primary)',
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user