Skip to content

Commit

Permalink
add static page
Browse files Browse the repository at this point in the history
  • Loading branch information
GrapFinanceDev committed Aug 19, 2020
1 parent 7c303ff commit 674cbfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion grap-www/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import TransactionProvider from './contexts/Transactions'

import Farms from './views/Farms'
import Home from './views/Home'

import Statics from './views/Statics'
import theme from './theme'

const App: React.FC = () => {
Expand All @@ -28,6 +28,9 @@ const App: React.FC = () => {
<Route path="/farms">
<Farms />
</Route>
<Route path="/statics">
<Statics />
</Route>
</Switch>
</Router>
</Providers>
Expand Down
3 changes: 2 additions & 1 deletion grap-www/src/components/TopBar/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Nav: React.FC = () => {
<StyledNav>
<StyledLink exact activeClassName="active" to="/">Home</StyledLink>
<StyledLink exact activeClassName="active" to="/farms">Farms</StyledLink>
<StyledLink exact activeClassName="active" to="/statics">Statics</StyledLink>
</StyledNav>
)
}
Expand All @@ -30,4 +31,4 @@ const StyledLink = styled(NavLink)`
}
`

export default Nav
export default Nav

0 comments on commit 674cbfb

Please sign in to comment.