joyent-portal/packages/my-joyent/src/router.js
2017-10-03 14:47:41 +01:00

21 lines
567 B
JavaScript

import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { PageContainer } from 'joyent-ui-toolkit';
import { Header } from '@containers/navigation';
import HomeHOC from '@containers/home';
import { NotFound } from '@components/navigation';
export default () => (
<BrowserRouter>
<PageContainer>
<Route path="/" component={Header} />
<Switch>
<Route path="/" exact component={HomeHOC} />
<Route path="/*" component={NotFound} />
</Switch>
</PageContainer>
</BrowserRouter>
);