From bf2a991ebc871c0b987130a6a5e71837e737d718 Mon Sep 17 00:00:00 2001 From: chip Date: Tue, 3 Nov 2020 12:35:12 +0100 Subject: [PATCH] new component for notifications --- .../components/notification/BankAlert.tsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 phone/src/apps/bank/components/notification/BankAlert.tsx diff --git a/phone/src/apps/bank/components/notification/BankAlert.tsx b/phone/src/apps/bank/components/notification/BankAlert.tsx new file mode 100644 index 0000000..e1b1979 --- /dev/null +++ b/phone/src/apps/bank/components/notification/BankAlert.tsx @@ -0,0 +1,24 @@ +import React, { useState } from 'react' +import MuiAlert from '@material-ui/lab/Alert'; +import Notification from '../../../../ui/components/Notification'; +import { useBankAlert } from '../../hooks/useBankAlert'; +import Snackbar from '@material-ui/core/Snackbar'; + +export const BankAlert = () => { + const [ open, setOpen ] = useState(false); + const { bankAlert, setBankAlert } = useBankAlert() + + + + const _handleClose = () => { + setOpen(false) + } + + return ( + + + You transferrred money + + + ) +}