create data bank and component list
This commit is contained in:
@@ -7,12 +7,12 @@ import Tab from "./Tab";
|
||||
|
||||
const listTab = ["حساب کاربری", "حساب بانکی"];
|
||||
|
||||
function UserAccountPage() {
|
||||
function UserAccountPage({data}) {
|
||||
const [value, setValue] = useState(1);
|
||||
|
||||
const handleChange = (event, newValue) => setValue(newValue);
|
||||
|
||||
const components = [<Account />, <Bank />];
|
||||
const components = [<Account />, <Bank data={data.bank} />];
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user