mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank/nui): notification/alert functionality | not done
This commit is contained in:
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>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in new issue
Block a user