From 1fab07090443d2a48e20d85ae2b299c02c5a1029 Mon Sep 17 00:00:00 2001 From: chip Date: Tue, 20 Oct 2020 18:32:02 +0200 Subject: [PATCH] feat(bank/nui): notification/alert functionality | not done --- .../notification/BankNotification.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 phone/src/apps/bank/components/notification/BankNotification.tsx diff --git a/phone/src/apps/bank/components/notification/BankNotification.tsx b/phone/src/apps/bank/components/notification/BankNotification.tsx new file mode 100644 index 0000000..50acd3c --- /dev/null +++ b/phone/src/apps/bank/components/notification/BankNotification.tsx @@ -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 ( + + + + ) +}