mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-16 07:58:10 +10:00
2c22c13f3e
- upgrade gatsby v2 to v3 - update functions
20 lines
637 B
JavaScript
20 lines
637 B
JavaScript
import { Redirect, Router } from '@reach/router';
|
|
import React, { memo } from 'react';
|
|
import Builder from './app/builder';
|
|
import Dashboard from './app/dashboard';
|
|
import NotFound from './404';
|
|
import PrivateRoute from '../components/router/PrivateRoute';
|
|
import Wrapper from '../components/shared/Wrapper';
|
|
|
|
const App = () => (
|
|
<Wrapper>
|
|
<Router>
|
|
<Redirect noThrow from="/app" to="/app/dashboard" exact />
|
|
<PrivateRoute path="/app/dashboard" component={Dashboard} />
|
|
<PrivateRoute path="/app/builder/:id" component={Builder} />
|
|
<NotFound default />
|
|
</Router>
|
|
</Wrapper>
|
|
);
|
|
export default memo(App);
|