Přidání vánočních prvků
This commit is contained in:
@@ -7,6 +7,7 @@ import { ToastContainer } from 'react-toastify';
|
||||
import { ProvideSettings } from './context/settings';
|
||||
import 'react-toastify/dist/ReactToastify.css';
|
||||
import './index.css';
|
||||
import Snowfall from 'react-snowfall';
|
||||
|
||||
const root = ReactDOM.createRoot(
|
||||
document.getElementById('root') as HTMLElement
|
||||
@@ -16,7 +17,14 @@ root.render(
|
||||
<ProvideAuth>
|
||||
<ProvideSettings>
|
||||
<SocketContext.Provider value={socket}>
|
||||
<App />
|
||||
<>
|
||||
<Snowfall style={{
|
||||
zIndex: 2,
|
||||
position: 'fixed',
|
||||
width: '100vw',
|
||||
height: '100vh'}} />
|
||||
<App />
|
||||
</>
|
||||
<ToastContainer />
|
||||
</SocketContext.Provider>
|
||||
</ProvideSettings>
|
||||
|
||||
Reference in New Issue
Block a user