mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
something weird happened now
This commit is contained in:
commit
6bb534231b
195 files changed
+2526
-1964
No files matched your search
@@ -1,4 +1,4 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
|
||||
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
|
||||
|
||||
/* #### Generated By: http://www.cufonfonts.com #### */
|
||||
|
||||
@@ -6,11 +6,13 @@
|
||||
font-family: 'Bahnschrift Regular';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local('Bahnschrift Regular'), url('../fonts/BAHNSCHRIFT.woff') format('woff');
|
||||
}
|
||||
src: local('Bahnschrift Regular'),
|
||||
url('../fonts/BAHNSCHRIFT.woff') format('woff');
|
||||
}
|
||||
|
||||
#account-section, #transaction-section {
|
||||
font-family: 'Bahnschrift Regular'
|
||||
#account-section,
|
||||
#transaction-section {
|
||||
font-family: 'Bahnschrift Regular';
|
||||
}
|
||||
|
||||
#transaction-section .MuiTablePagination-root {
|
||||
@@ -26,12 +28,10 @@
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
|
||||
#bank-app .Mui-selected {
|
||||
color: #388CF8 !important;
|
||||
color: #388cf8 !important;
|
||||
}
|
||||
|
||||
|
||||
#bank-app .MuiSnackbar-root {
|
||||
position: absolute;
|
||||
}
|
||||
@@ -47,4 +47,4 @@
|
||||
|
||||
#actionButton a {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@ import { useBankModal } from '../hooks/useBankModal';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
import { NavigationBar } from './navigation/NavigationBar';
|
||||
|
||||
|
||||
import { BankHome } from './home/BankHome';
|
||||
import { BankAccount } from './account/BankAccount';
|
||||
import { TransactionList } from './transactions/TransactionList';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from "react";
|
||||
import MuiAlert from "@material-ui/lab/Alert";
|
||||
import React from 'react';
|
||||
import MuiAlert from '@material-ui/lab/Alert';
|
||||
|
||||
export function Alert(props) {
|
||||
return <MuiAlert elevation={6} variant="filled" {...props} />;
|
||||
return <MuiAlert elevation={6} variant='filled' {...props} />;
|
||||
}
|
||||
|
||||
export default Alert;
|
||||
@@ -3,7 +3,7 @@ import { atom } from 'recoil';
|
||||
export const bankState = {
|
||||
transactions: atom({
|
||||
key: 'transactionList',
|
||||
default: []
|
||||
default: [],
|
||||
}),
|
||||
bankModal: atom({
|
||||
key: 'modalVisibility',
|
||||
@@ -11,14 +11,14 @@ export const bankState = {
|
||||
}),
|
||||
transferSuccessful: atom({
|
||||
key: 'bankAlert',
|
||||
default: null
|
||||
default: null,
|
||||
}),
|
||||
bankCredentials: atom({
|
||||
key: 'bankCredentails',
|
||||
default: null
|
||||
default: null,
|
||||
}),
|
||||
notification: atom({
|
||||
key: 'bankNotification',
|
||||
default: null
|
||||
})
|
||||
}
|
||||
default: null,
|
||||
}),
|
||||
};
|
||||
@@ -2,6 +2,8 @@ import { useRecoilState } from 'recoil';
|
||||
import { bankState } from './state';
|
||||
|
||||
export const useBankAlert = (): any => {
|
||||
const [ bankAlert, setBankAlert ] = useRecoilState(bankState.transferSuccessful);
|
||||
const [bankAlert, setBankAlert] = useRecoilState(
|
||||
bankState.transferSuccessful
|
||||
);
|
||||
return { bankAlert, setBankAlert };
|
||||
}
|
||||
};
|
||||
@@ -9,4 +9,4 @@ interface BankModalProps {
|
||||
export const useBankModal = (): BankModalProps => {
|
||||
const [ showBankModal, setShowBankModal ] = useRecoilState(bankState.bankModal);
|
||||
return { showBankModal, setShowBankModal };
|
||||
}
|
||||
};
|
||||
@@ -1,22 +1,22 @@
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { bankState } from './state';
|
||||
import { useTransactions } from './useTransactions'
|
||||
import { useTransactions } from './useTransactions';
|
||||
import { useCredentials } from './useCredentials';
|
||||
import { useBankAlert } from './useBankAlert';
|
||||
import { useSetRecoilState } from 'recoil'
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { useBankNotification } from './useBankNotification';
|
||||
|
||||
export const useBankService = () => {
|
||||
const setTransaction = useSetRecoilState(bankState.transactions)
|
||||
const setCredentials = useSetRecoilState(bankState.bankCredentials)
|
||||
const setAlertMessage = useSetRecoilState(bankState.transferSuccessful)
|
||||
const setTransaction = useSetRecoilState(bankState.transactions);
|
||||
const setCredentials = useSetRecoilState(bankState.bankCredentials);
|
||||
const setAlertMessage = useSetRecoilState(bankState.transferSuccessful);
|
||||
const setNotification = useSetRecoilState(bankState.notification);
|
||||
|
||||
///
|
||||
|
||||
|
||||
useNuiEvent('BANK', 'setTransaction', setTransaction);
|
||||
useNuiEvent('BANK', 'setCredentials', setCredentials);
|
||||
useNuiEvent('BANK', 'setAlert', setAlertMessage);
|
||||
useNuiEvent('BANK', 'setNotification', setNotification);
|
||||
return { useTransactions, useCredentials, useBankAlert, useBankNotification };
|
||||
}
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useRecoilValue } from "recoil";
|
||||
import { bankState } from './state';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { bankState } from './state';
|
||||
|
||||
export const useTransactions = () => {
|
||||
const transactionList = useRecoilValue(bankState.transactions);
|
||||
|
||||
Reference in new issue
Block a user