Update routes

This commit is contained in:
Hazem Krimi
2020-10-16 14:10:32 +01:00
parent a6c406fbcf
commit 53f8b1734f
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -20,6 +20,9 @@ const App: React.FC = () => {
<Route path='/' exact>
<Home />
</Route>
<Route path='/home' exact>
<Home />
</Route>
<Route path='/search/:query'>
<Search />
</Route>
+1 -1
View File
@@ -20,7 +20,7 @@ const NavBar: React.FC = () => {
return (
<Nav>
<h1 onClick={() => history.push('/')}>Weather</h1>
<h1 onClick={() => history.push('/home')}>Weather</h1>
<SearchBar />
</Nav>
);