mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
Moved transactions
This commit is contained in:
1 parent
a0444019cf
commit
04a9297e4e
2 files changed
+2
-34
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { List } from "../../../ui/components/List";
|
||||
import { ListItem } from "../../../ui/components/ListItem";
|
||||
import { List } from "../../../../ui/components/List";
|
||||
import { ListItem } from "../../../../ui/components/ListItem";
|
||||
import ListItemText from "@material-ui/core/ListItemText";
|
||||
|
||||
export const TransactionList = ({ transactions }) => {
|
||||
@@ -1,32 +0,0 @@
|
||||
import { useRecoilState, atom } from "recoil";
|
||||
|
||||
const transactionListState = atom({
|
||||
key: "transactionList",
|
||||
default: [
|
||||
{
|
||||
id: 0,
|
||||
amount: 300,
|
||||
type: "withdraw",
|
||||
date: "3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
amount: 1000,
|
||||
type: "withdraw",
|
||||
date: "3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
amount: 50,
|
||||
type: "transfer",
|
||||
date: "2",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
export const useBank = () => {
|
||||
const [transactionList, setTransactionList] = useRecoilState(
|
||||
transactionListState
|
||||
);
|
||||
return { transactionList, setTransactionList };
|
||||
};
|
||||
Reference in new issue
Block a user