Fix notification color

This commit is contained in:
Abhinav 2023-06-06 14:19:01 +05:30
parent 8a9a46deec
commit 895ec5ca67

View file

@ -4,7 +4,6 @@ import {
Button,
ButtonProps,
IconButton,
Paper,
Snackbar,
Stack,
Typography,
@ -42,14 +41,14 @@ export default function Notification({ open, onClose, attributes }: Iprops) {
vertical: 'bottom',
}}
sx={{ backgroundColor: '#000', width: '320px' }}>
<Paper
component={Button}
<Button
color={attributes.variant}
onClick={handleClick}
sx={{
textAlign: 'left',
flex: '1',
padding: (theme) => theme.spacing(1.5, 2),
borderRadius: '8px',
}}>
<Stack
flex={'1'}
@ -89,7 +88,7 @@ export default function Notification({ open, onClose, attributes }: Iprops) {
</IconButton>
)}
</Stack>
</Paper>
</Button>
</Snackbar>
);
}