feat(bank/nui): add BankAlert to BankApp

This commit is contained in:
chip committed 2020-11-04 16:13:07 +01:00
1 parent b6ac33116e
commit 54586266b5
2 files changed
+1 -25

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ import { NavigationBar } from "./navigation/NavigationBar";
import { BankHome } from './home/BankHome';
import { BankAccount } from './account/BankAccount';
import { TransactionList } from "./transactions/TransactionList";
import { BankAlert } from "./notification/BankAlert";
import { BankAlert } from "./alert/BankAlert";
const useStyles = makeStyles((theme) => ({
root: {
@@ -1,24 +0,0 @@
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 (
<Snackbar style={{ width: '80%' }} open={open} autoHideDuration={6000} onClose={_handleClose}>
<MuiAlert style={{ background: '#388CF8' }} onClose={_handleClose} severity="success">
You transferrred money
</MuiAlert>
</Snackbar>
)
}