-
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 pull request #7 from nikandlv/development
Action and variant update
- Loading branch information
Showing
4 changed files
with
106 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
import React from 'react' | ||
export default function NotificationActions() { | ||
import Collapse from '@material-ui/core/Collapse'; | ||
import { makeStyles } from '@material-ui/styles'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
root: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
padding: '.4rem .6rem .4rem .6rem', | ||
background: '#eeeeee', | ||
maxHeight: 36, | ||
"&.pie": { | ||
borderBottomLeftRadius: '1rem', | ||
borderBottomRightRadius: '1rem' | ||
} | ||
}, | ||
})); | ||
//#eeeeee | ||
export default function NotificationActions(props) { | ||
const classes = useStyles(); | ||
const expanded = props.expanded | ||
return ( | ||
<div> | ||
|
||
</div> | ||
<Collapse in={expanded}> | ||
<div className={`${classes.root} ${props.variant}`}> | ||
{props.children} | ||
</div> | ||
</Collapse> | ||
) | ||
} |
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