mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank/nui): add BankAlert to BankApp
This commit is contained in:
1 parent
b6ac33116e
commit
54586266b5
2 files changed
+1
-25
No files matched your search
@@ -21,7 +21,7 @@ import { NavigationBar } from "./navigation/NavigationBar";
|
|||||||
import { BankHome } from './home/BankHome';
|
import { BankHome } from './home/BankHome';
|
||||||
import { BankAccount } from './account/BankAccount';
|
import { BankAccount } from './account/BankAccount';
|
||||||
import { TransactionList } from "./transactions/TransactionList";
|
import { TransactionList } from "./transactions/TransactionList";
|
||||||
import { BankAlert } from "./notification/BankAlert";
|
import { BankAlert } from "./alert/BankAlert";
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
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>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user