mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat/inject debug - Use new abstraction to clean up debug data (#70)
* feat(phone/debug): Inject debug data for development * refactor(phone/debug): Refactored mock data to InjectDebugEvents * fix(phone/debug) removed useless debug injections
This commit is contained in:
11 files changed
+243
-256
No files matched your search
@@ -15,6 +15,60 @@ import { BankHome } from './home/BankHome';
|
||||
import { BankAccount } from './account/BankAccount';
|
||||
import { TransactionList } from './transactions/TransactionList';
|
||||
import { BankAlert } from './alert/BankAlert';
|
||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||
|
||||
InjectDebugData([
|
||||
{
|
||||
app: 'BANK',
|
||||
method: 'setCredentials',
|
||||
data: {
|
||||
name: 'Firstname Lastname',
|
||||
balance: 2000,
|
||||
},
|
||||
},
|
||||
{
|
||||
app: 'BANK',
|
||||
method: 'setTransaction',
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
amount: 200,
|
||||
type: 'Deposit',
|
||||
source: 'chip',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
amount: 200,
|
||||
type: 'Withdraw',
|
||||
source: 'chip',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
amount: 200,
|
||||
type: 'Withdraw',
|
||||
source: 'chip',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
amount: 50,
|
||||
type: 'Deposit',
|
||||
source: 'chip',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
amount: 50,
|
||||
type: 'Deposit',
|
||||
source: 'chip',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
amount: 50,
|
||||
type: 'Deposit',
|
||||
source: 'chip',
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
|
||||
Reference in new issue
Block a user