Skip to content

Commit

Permalink
Add padding to main content
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziovigevani committed Dec 6, 2019
1 parent e251adb commit b063eeb
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Header from './Header'
import ErrorPage from './ErrorPage'

import Dashboard from './components/Dashboard/Dashboard'

import Disputes from './components/Disputes/Disputes'

function App() {
Expand All @@ -27,13 +26,19 @@ function App() {
`}
>
<Main>
<Redirect from="/" to="/dashboard" />
<Switch>
<Route path="/dashboard" component={Dashboard} />
<Route exact path="/tasks" render={() => <div>tasks</div>} />
<Route exact path="/disputes" component={Disputes} />
<Route component={ErrorPage} />
</Switch>
<div
css={`
padding-bottom: 32px;
`}
>
<Redirect from="/" to="/dashboard" />
<Switch>
<Route path="/dashboard" component={Dashboard} />
<Route exact path="/tasks" render={() => <div>tasks</div>} />
<Route exact path="/disputes" component={Disputes} />
<Route component={ErrorPage} />
</Switch>
</div>
</Main>
</div>
</div>
Expand Down

0 comments on commit b063eeb

Please sign in to comment.