Skip to content
Snippets Groups Projects
Commit 70e7ae92 authored by lfr20's avatar lfr20
Browse files

hot fixes

parent d51d51b1
No related branches found
No related tags found
1 merge request!58Master
......@@ -99,7 +99,6 @@ export default function App() {
// eslint-disable-next-line
const { state, dispatch } = useContext(Store);
const [hideFooter, setHideFooter] = useState(false);
const PiwikReactRouter = require('piwik-react-router');
const piwik = PiwikReactRouter({
url: '//piwik.c3sl.ufpr.br/',
......@@ -169,7 +168,7 @@ export default function App() {
rel="stylesheet"
/>
<Switch>
<Route path="/" exact={true} component={Home} />
<Route path="/home" exact={true} component={Home} />
<Route path="/busca" component={Search} />
<Route path="/perfil" component={UserPage} />
<Route path="/editarperfil" component={EditProfilePage} />
......@@ -203,13 +202,10 @@ export default function App() {
<Route path="/topico" component={FormationMaterialPage} />
<Route path="/iframe-colecao" component={FormationMaterialIframe} />
<Route path="/material-formacao" component={MaterialPage} />
<Route path="*">
<Home />
</Route>
<div style={{ backgroundColor: " #D3D3D3" }}>
<AppBarAdmin />
<div style={{ padding: "2em" }}>
<Route path="/admin/inicial" exact={true} render={() => {
<Route path="/admin/home" exact={true} render={() => {
if (CheckUserPermission())
return <Inframe />
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment