Skip to content

Commit

Permalink
Added first version of About class component miles-no#23
Browse files Browse the repository at this point in the history
  • Loading branch information
eivinn committed Mar 3, 2020
1 parent d62fe60 commit 319913f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions client-ts/src/app/about/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

class About extends React.Component {
render() {
return (
<div>
<h3>TODO About component</h3>
<p>Work in progress...</p>
</div>
);
}
}

export default About;
3 changes: 2 additions & 1 deletion client-ts/src/app/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Typography from '@material-ui/core/Typography';
import { makeStyles, useTheme } from '@material-ui/core/styles';
import { DrawerMenu } from './DrawerMenu';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import About from './../about/About';

const drawerWidth = 240;

Expand Down Expand Up @@ -119,7 +120,7 @@ function Layout(props: { container?: any }) {
<h3>TODO shoppinglist component</h3>
</Route>
<Route path="/about">
<h3>TODO about component</h3>
<About />
</Route>
<Route path="/">
<h3>TODO home component</h3>
Expand Down

0 comments on commit 319913f

Please sign in to comment.