Last active
July 21, 2019 10:37
-
-
Save tobinbc/657ee3847b638c78c0185c49e5ab5474 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Card, CardHeader } from '@material-ui/core'; | |
import React, { FunctionComponent } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { HashRouter, Route, Switch } from 'react-router-dom'; | |
import { Holding } from './components/Holding'; | |
import { Record } from './components/Record'; | |
import { Signup } from './components/Signup'; | |
import './popup.scss'; | |
const Popup: FunctionComponent = () => | |
<Card style={{ width: '350px' }}> | |
<CardHeader title='Slackjaw' /> | |
<HashRouter> | |
<Switch> | |
<Route component={Signup} path='/signup' /> | |
<Route component={Record} path='/record' /> | |
<Route component={Holding} /> | |
</Switch> | |
</HashRouter> | |
</Card> | |
ReactDOM.render(<Popup />, document.getElementById('root')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment