Skip to content

Commit

Permalink
refactor(routing): adj routing
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Sep 8, 2021
1 parent 97a11fe commit 2e8154a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class App extends Component {
<BrowserRouter>
<Switch>
<DataProvider>
<Route path="/" exact render={() => (<Home/>)}/>
<Route exact path="/" render={() => (<Home/>)}/>
<Route path="/about" exact render={() => ( <About/>)}/>
<Route path="/shop" exact render={() => (<Shop/>)}/>
<Route path="/profile" exact component={Profile}/>
Expand All @@ -40,8 +40,8 @@ export default class App extends Component {
<Route path="/blog/new" exact component={CreateArticle} />
<Route path="/blog/edit" exact component={CreateArticle} />
<Route path="/contact" exact component={Contact} />
<Route path="*" exact component={Error} />
</DataProvider>
<Route path="*" component={Error} />
</Switch>
</BrowserRouter>
);
Expand Down

0 comments on commit 2e8154a

Please sign in to comment.