mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-04 03:21:04 +08:00
30 lines
730 B
TypeScript
30 lines
730 B
TypeScript
import React from 'react'
|
|
import ReactDOM from 'react-dom/client'
|
|
import App from './App.tsx'
|
|
import { Toaster } from 'sonner'
|
|
import './index.css'
|
|
import { BrowserRouter } from 'react-router-dom'
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
<React.StrictMode>
|
|
<BrowserRouter>
|
|
<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 />
|
|
</BrowserRouter>
|
|
</React.StrictMode>
|
|
)
|