feat(bank/nui): notification/alert functionality | not done

This commit is contained in:
chip committed 2020-10-20 18:32:02 +02:00
1 parent 097524d054
commit 1fab070904
1 file changed
+18
@@ -0,0 +1,18 @@
import React from 'react'
import Alert from '@material-ui/lab/Alert';
import Notification from '../../../../ui/components/Notification';
import { useBankAlert } from './../../hooks/useBankAlert';
export const BankNotification = ({ alert }) => {
const { setBankAlert } = useBankAlert();
const handleClose = () => {
setBankAlert(false)
}
return (
<Notification handleClose={onClose}>
<Alert onClose={handleClose}></Alert>
</Notification>
)
}