import 'Components/ui/index.css' import { useEffect } from 'react' import { hot } from 'react-hot-loader' import { Redirect, Route, Switch } from 'react-router-dom' import Communauté from '../pages/Communauté' import Documentation from '../pages/Documentation' import Landing from '../pages/Landing' import { Header } from './Header' import LazyStudio from './LazyStudio' import Provider from './Provider' function Router() { return ( ) } const RouterSwitch = () => { useEffect(() => { removeLoadingLogo() }, []) return ( <>
{/* Removes trailing slashes */} ( )} />
) } const removeLoadingLogo = () => { const css = document.createElement('style') css.type = 'text/css' css.innerHTML = ` #js { animation: appear 0.5s; opacity: 1; } #loading { display: none !important; }` document.body.appendChild(css) } export default hot(module)(Router)