Skip to content

Commit

Permalink
Update routes in App
Browse files Browse the repository at this point in the history
  • Loading branch information
dedaldino3d committed Nov 7, 2020
1 parent ab2870c commit 023836c
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions src/components/App/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
import React from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import Home from "../Home";
import AboutUs from "../AboutUs";
import Contact from "../Contact";
import NotFound from "../404NotFound";
import GlobalStyle from '../Styles'

import GlobalStyle from "../Styles";

export const App = (props) => {
return (
<>
<GlobalStyle/>
<Router>
<Switch>
<Route exact path="/">
<Home />
</Route>
<Route path="*">
<NotFound />
</Route>
</Switch>
</Router>
<GlobalStyle />
<Router>
<Switch>
<Route exact path="/">
<Home />
</Route>
<Route path="/info">
<Contact />
</Route>
<Route path="/about">
<AboutUs />
</Route>
<Route path="*">
<NotFound />
</Route>
</Switch>
</Router>
</>
);
};
Expand Down

0 comments on commit 023836c

Please # to comment.