Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as React from 'react';
- import Grid from '@material-ui/core/Grid';
- import Hidden from '@material-ui/core/Hidden';
- interface StandardLayoutProps {
- children: React.ReactElement
- }
- export const StandardLayout: React.FC<StandardLayoutProps> = ({children}) => (
- <Grid container style={{marginTop: 16}}>
- <Hidden mdUp>
- <Grid item xs={12}>
- <div style={{
- marginLeft: '2.08333333334%',
- marginRight: '2.08333333334%',
- }}>
- {children}
- </div>
- </Grid>
- </Hidden>
- <Hidden smDown>
- <Grid item lg={2}/>
- <Grid item xs={10} lg={8}>
- {children}
- </Grid>
- </Hidden>
- </Grid>
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement