Skip to content

Commit

Permalink
remove Page component, use Helmet component in order to set the title…
Browse files Browse the repository at this point in the history
… in every page/view (devias-io#78)
  • Loading branch information
andrei-ionescu13 authored Mar 25, 2021
1 parent bfa415e commit 619b0ef
Show file tree
Hide file tree
Showing 9 changed files with 535 additions and 543 deletions.
26 changes: 0 additions & 26 deletions src/components/Page.js

This file was deleted.

55 changes: 29 additions & 26 deletions src/views/account/AccountView/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Helmet } from 'react-helmet';
import {
Box,
Container,
Grid,
makeStyles
} from '@material-ui/core';
import Page from 'src/components/Page';
import Profile from './Profile';
import ProfileDetails from './ProfileDetails';

Expand All @@ -20,34 +21,36 @@ const Account = () => {
const classes = useStyles();

return (
<Page
className={classes.root}
title="Account"
>
<Container maxWidth="lg">
<Grid
container
spacing={3}
>
<>
<Helmet>
<title>Account</title>
</Helmet>
<Box className={classes.root}>
<Container maxWidth="lg">
<Grid
item
lg={4}
md={6}
xs={12}
container
spacing={3}
>
<Profile />
<Grid
item
lg={4}
md={6}
xs={12}
>
<Profile />
</Grid>
<Grid
item
lg={8}
md={6}
xs={12}
>
<ProfileDetails />
</Grid>
</Grid>
<Grid
item
lg={8}
md={6}
xs={12}
>
<ProfileDetails />
</Grid>
</Grid>
</Container>
</Page>
</Container>
</Box>
</>
);
};

Expand Down
Loading

0 comments on commit 619b0ef

Please sign in to comment.