Skip to content

Instantly share code, notes, and snippets.

@tobinbc
Last active July 21, 2019 10:37
Show Gist options
  • Save tobinbc/657ee3847b638c78c0185c49e5ab5474 to your computer and use it in GitHub Desktop.
Save tobinbc/657ee3847b638c78c0185c49e5ab5474 to your computer and use it in GitHub Desktop.
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