handle change data and update data in dashboard page for all tabs
This commit is contained in:
@@ -4,7 +4,7 @@ import { Switch, TableCell, TableRow } from "@mui/material";
|
||||
import Head from "@/components/dashboard/userAccount/components/Head";
|
||||
import UpdateBtn from "@/components/dashboard/userAccount/components/UpdateBtn";
|
||||
|
||||
function Disease({ data, setData, updateData }) {
|
||||
function Disease({ data, setData, updateData, loading }) {
|
||||
const { other } = data;
|
||||
const { disease } = other && other[0];
|
||||
const tableHead = ["ردیف", "اسم", "وضعیت", ""];
|
||||
@@ -31,7 +31,7 @@ function Disease({ data, setData, updateData }) {
|
||||
return (
|
||||
<div className="opacity-page">
|
||||
<Head text="لیست بیماری ها" add={false}>
|
||||
<UpdateBtn updateData={updateData} />
|
||||
<UpdateBtn updateData={updateData} loading={loading} />
|
||||
</Head>
|
||||
<CustomTable
|
||||
zeroRadius={true}
|
||||
|
||||
Reference in New Issue
Block a user