Skip to content

Commit

Permalink
feat: app bar
Browse files Browse the repository at this point in the history
  • Loading branch information
asartalo committed Jul 7, 2021
1 parent 419f052 commit e407088
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ import { BrowserRouter as Router, Route } from 'react-router-dom';
import CalendarPage from '../pages/calendar/CalendarPage';
import MainPage from '../pages/main/MainPage';
import BaseStyle from './BaseStyle';
import PrintablesAppBar from './PrintablesAppBar';

const basePath = process.env.PUBLIC_URL;

function App(): JSX.Element {
return (
<>
<BaseStyle />
<header>
<h1>Printables</h1>
</header>
<PrintablesAppBar />
<main>
<Router basename={basePath}>
<Route exact path="/" component={MainPage} />
Expand Down
12 changes: 12 additions & 0 deletions src/components/PrintablesAppBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import { AppBar, Toolbar, Typography } from '@material-ui/core';

const PrintablesAppBar = (): JSX.Element => (
<AppBar>
<Toolbar>
<Typography variant="h6">Printables</Typography>
</Toolbar>
</AppBar>
);

export default PrintablesAppBar;

0 comments on commit e407088

Please sign in to comment.