mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
cleanup(bank): general cleanup for bank
This commit is contained in:
1 parent
319e5efac5
commit
eb506f0ab0
13 files changed
+282
-385
No files matched your search
@@ -1,24 +1,24 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import Notification from "../../../../ui/components/Notification";
|
||||
import { usePhone } from "../../../../os/phone/hooks/usePhone";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import Notification from '../../../../ui/components/Notification';
|
||||
import { usePhone } from '../../../../os/phone/hooks/usePhone';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import useStyles from './notification.style';
|
||||
import { useBankNotification } from "../../hooks/useBankNotification";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faWonSign } from "@fortawesome/free-solid-svg-icons";
|
||||
import { useBankNotification } from '../../hooks/useBankNotification';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faWonSign } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
export const BankNotification = () => {
|
||||
const { notification } = useBankNotification()
|
||||
const classes = useStyles()
|
||||
const { notification } = useBankNotification();
|
||||
const classes = useStyles();
|
||||
const { t } = useTranslation();
|
||||
const [visible, setVisible ] = useState(false);
|
||||
const { config } = usePhone()
|
||||
const [visible, setVisible] = useState(false);
|
||||
const { config } = usePhone();
|
||||
|
||||
useEffect(() => {
|
||||
if (notification) {
|
||||
setVisible(true);
|
||||
}
|
||||
}, [notification?.id])
|
||||
}, [notification?.id]);
|
||||
|
||||
if (!config?.bank.showNotifications || !notification) return null;
|
||||
|
||||
@@ -36,10 +36,13 @@ export const BankNotification = () => {
|
||||
</div>
|
||||
<div className={classes.heading}>{notification.type}</div>
|
||||
</div>
|
||||
<div className={classes.justNow}>{t("APPS_BANK_TIME_JUST_NOW")}</div>
|
||||
<div className={classes.justNow}>{t('APPS_BANK_TIME_JUST_NOW')}</div>
|
||||
</div>
|
||||
<div className={classes.message}>
|
||||
{notification.source} sent you ${notification.transferAmount}.{' '}
|
||||
<br></br> {notification.message}
|
||||
</div>
|
||||
<div className={classes.message}>{notification.source} sent you ${notification.transferAmount}. <br></br> {notification.message}</div>
|
||||
</div>
|
||||
</Notification>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user