mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
Daniel Mason
e570314ac2
- Fix mobile menu auto collapse on select - Add /u/ route for public user profiles (Added private flag to db - to implement later) - Add /user route for your own profile / edit profile - Added handling for if API is offline/incorrect - Add index.html loading spinner while react bundle downloads - Change HashRouter to BrowserRouter - Added sources column to scrobbles
31 lines
751 B
JavaScript
31 lines
751 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import './index.css';
|
|
import App from './App';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
|
|
import { ToastContainer } from 'react-toastify';
|
|
import 'react-toastify/dist/ReactToastify.min.css';
|
|
|
|
import AuthContextProvider from './Contexts/AuthContextProvider';
|
|
|
|
ReactDOM.render(
|
|
<AuthContextProvider>
|
|
<BrowserRouter>
|
|
<ToastContainer
|
|
position="bottom-right"
|
|
autoClose={5000}
|
|
hideProgressBar={false}
|
|
newestOnTop={true}
|
|
closeOnClick
|
|
rtl={false}
|
|
pauseOnFocusLoss={false}
|
|
draggable
|
|
pauseOnHover
|
|
/>
|
|
<App />
|
|
</BrowserRouter>
|
|
</AuthContextProvider>,
|
|
document.getElementById('root')
|
|
);
|