-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/mavka-org/mavka-ui
- Loading branch information
Showing
6 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import Container from '@material-ui/core/Container'; | ||
|
||
const useStyles = props => makeStyles( theme => ({ | ||
root: { | ||
padding: theme.spacing(2) | ||
} | ||
})); | ||
|
||
export function PageContainer({ children, ...props }){ | ||
const classes = useStyles(props)(); | ||
const classNames = `${classes.root} ${props.className}`; | ||
return ( | ||
<Container maxWidth="sm" className={classNames}> | ||
{children} | ||
</Container> | ||
); | ||
} | ||
|
||
export default PageContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
|
||
import NavigationContainer from '../../components/layout/NavigationContainer'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
|
||
export default { | ||
title: 'Layout/NavigationContainer', | ||
component: NavigationContainer | ||
}; | ||
|
||
const useStyles = makeStyles( theme => ({ | ||
root: { | ||
background: '#000', | ||
color: '#fff' | ||
} | ||
})); | ||
|
||
export const Default = () => <NavigationContainer className={useStyles().root}>This is a Default NavigationContainer used to pad all the navigation.</NavigationContainer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters