diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-08 17:33:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-08 17:33:58 -0700 |
commit | bf95e1bb48379bc1c3482d3f201017250991a832 (patch) | |
tree | 044446e36f395d3bcc0f48f8d95e25bc23ba2009 /modern/src/settings/components/EditItemView.js | |
parent | ed99455abb6c73ded056ae3239cfce01a63ab76f (diff) | |
download | trackermap-web-bf95e1bb48379bc1c3482d3f201017250991a832.tar.gz trackermap-web-bf95e1bb48379bc1c3482d3f201017250991a832.tar.bz2 trackermap-web-bf95e1bb48379bc1c3482d3f201017250991a832.zip |
Implement new page layout
Diffstat (limited to 'modern/src/settings/components/EditItemView.js')
-rw-r--r-- | modern/src/settings/components/EditItemView.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/settings/components/EditItemView.js b/modern/src/settings/components/EditItemView.js index 90e5294a..2283ebda 100644 --- a/modern/src/settings/components/EditItemView.js +++ b/modern/src/settings/components/EditItemView.js @@ -6,8 +6,8 @@ import Button from '@material-ui/core/Button'; import FormControl from '@material-ui/core/FormControl'; import { useEffectAsync } from '../../reactHelper'; -import OptionsLayout from './OptionsLayout'; import { useTranslation } from '../../common/components/LocalizationProvider'; +import PageLayout from '../../common/components/PageLayout'; const useStyles = makeStyles((theme) => ({ container: { @@ -23,7 +23,7 @@ const useStyles = makeStyles((theme) => ({ })); const EditItemView = ({ - children, endpoint, item, setItem, validate, onItemSaved, + children, endpoint, item, setItem, validate, onItemSaved, menu, breadcrumbs, }) => { const history = useHistory(); const classes = useStyles(); @@ -63,7 +63,7 @@ const EditItemView = ({ }; return ( - <OptionsLayout> + <PageLayout menu={menu} breadcrumbs={breadcrumbs}> <Container maxWidth="xs" className={classes.container}> {children} <FormControl fullWidth margin="normal"> @@ -88,7 +88,7 @@ const EditItemView = ({ </div> </FormControl> </Container> - </OptionsLayout> + </PageLayout> ); }; |