change design dashboards all page and search clinics
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import React from "react";
|
||||
|
||||
function Head({ text, children }) {
|
||||
return (
|
||||
<div className="w-full flex mb-[40px] items-center justify-between">
|
||||
<p className="text-[#525252] dark:text-[#A1A1A1] text-[20px] font-bold">
|
||||
{text}
|
||||
</p>
|
||||
{children}
|
||||
<div className="flex items-center justify-end gap-4">{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import UpdateList from "@/components/icons/UpdateList";
|
||||
import { Button } from "@mui/material";
|
||||
|
||||
function UpdateBtn() {
|
||||
return (
|
||||
<Button
|
||||
variant="outlined"
|
||||
className="!border-[#5559CE] !border-[2px] !flex !items-center !justify-center !gap-2 !text-[14px] md:!text-[14px] !font-medium"
|
||||
>
|
||||
<UpdateList />
|
||||
آپدیت کردن
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
export default UpdateBtn;
|
||||
@@ -5,6 +5,7 @@ import TrashB from "@/components/icons/TrashB";
|
||||
import { Button, TableCell, TableRow } from "@mui/material";
|
||||
import Head from "../../components/Head";
|
||||
import AddBtn from "../../components/AddBtn";
|
||||
import UpdateBtn from "../../components/UpdateBtn";
|
||||
|
||||
function Allergies({ data }) {
|
||||
const tableHead = ["ردیف", "ماده آلرژیزا", "واکنش", "شدت", ""];
|
||||
@@ -13,6 +14,7 @@ function Allergies({ data }) {
|
||||
return (
|
||||
<div>
|
||||
<Head text="لیست آلرژی ها">
|
||||
<UpdateBtn />
|
||||
<AddBtn />
|
||||
</Head>
|
||||
<CustomTable
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import CustomTable from "@/app/component/CustomTable";
|
||||
import TextLoading from "@/app/component/loading/Text";
|
||||
import { Button, Switch, TableCell, TableRow } from "@mui/material";
|
||||
import { Switch, TableCell, TableRow } from "@mui/material";
|
||||
import Head from "../../components/Head";
|
||||
import UpdateList from "@/components/icons/UpdateList";
|
||||
import AddBtn from "../../components/AddBtn";
|
||||
import UpdateBtn from "../../components/UpdateBtn";
|
||||
|
||||
function Disease({ data }) {
|
||||
const tableHead = ["ردیف", "اسم", "وضعیت", ""];
|
||||
@@ -12,16 +11,7 @@ function Disease({ data }) {
|
||||
return (
|
||||
<div>
|
||||
<Head text="لیست بیماری ها" add={false}>
|
||||
<div className="flex items-center justify-end gap-4">
|
||||
<Button
|
||||
variant="outlined"
|
||||
className="!border-[#5559CE] !border-[2px] !flex !items-center !justify-center !gap-2 !text-[14px] md:!text-[14px] !font-medium"
|
||||
>
|
||||
<UpdateList />
|
||||
آپدیت کردن
|
||||
</Button>
|
||||
<AddBtn />
|
||||
</div>
|
||||
<UpdateBtn />
|
||||
</Head>
|
||||
<CustomTable
|
||||
zeroRadius={true}
|
||||
|
||||
@@ -5,6 +5,7 @@ import TrashB from "@/components/icons/TrashB";
|
||||
import { Button, TableCell, TableRow } from "@mui/material";
|
||||
import Head from "../../components/Head";
|
||||
import AddBtn from "../../components/AddBtn";
|
||||
import UpdateBtn from "../../components/UpdateBtn";
|
||||
|
||||
function FamilyHistory({ data }) {
|
||||
const tableHead = ["ردیف", "بیماری", "نسبت خانوادگی", ""];
|
||||
@@ -13,6 +14,7 @@ function FamilyHistory({ data }) {
|
||||
return (
|
||||
<div>
|
||||
<Head text="لیست سابقه خانوادگی بیماری">
|
||||
<UpdateBtn />
|
||||
<AddBtn />
|
||||
</Head>
|
||||
<CustomTable
|
||||
|
||||
@@ -5,6 +5,7 @@ import TrashB from "@/components/icons/TrashB";
|
||||
import { Button, TableCell, TableRow } from "@mui/material";
|
||||
import Head from "../../components/Head";
|
||||
import AddBtn from "../../components/AddBtn";
|
||||
import UpdateBtn from "../../components/UpdateBtn";
|
||||
|
||||
function Medications({ data }) {
|
||||
const tableHead = ["ردیف", "نام دارو", "دوز مصرفی", "تعداد و زمان مصرف", ""];
|
||||
@@ -13,6 +14,7 @@ function Medications({ data }) {
|
||||
return (
|
||||
<div>
|
||||
<Head text="لیست دارو های مصرفی">
|
||||
<UpdateBtn />
|
||||
<AddBtn />
|
||||
</Head>
|
||||
<CustomTable
|
||||
|
||||
@@ -5,6 +5,7 @@ import TrashB from "@/components/icons/TrashB";
|
||||
import { Button, TableCell, TableRow, Tooltip } from "@mui/material";
|
||||
import Head from "../../components/Head";
|
||||
import AddBtn from "../../components/AddBtn";
|
||||
import UpdateBtn from "../../components/UpdateBtn";
|
||||
|
||||
function Relatives({ data }) {
|
||||
const tableHead = ["ردیف", "نام", "نسبت", "شماره تماس", "آدرس", ""];
|
||||
@@ -13,6 +14,7 @@ function Relatives({ data }) {
|
||||
return (
|
||||
<div>
|
||||
<Head text="لیست بستگان">
|
||||
<UpdateBtn />
|
||||
<AddBtn />
|
||||
</Head>
|
||||
<CustomTable
|
||||
|
||||
@@ -5,6 +5,7 @@ import TrashB from "@/components/icons/TrashB";
|
||||
import { Button, TableCell, TableRow } from "@mui/material";
|
||||
import Head from "../../components/Head";
|
||||
import AddBtn from "../../components/AddBtn";
|
||||
import UpdateBtn from "../../components/UpdateBtn";
|
||||
|
||||
function Surgeries({ data }) {
|
||||
const tableHead = [
|
||||
@@ -19,6 +20,7 @@ function Surgeries({ data }) {
|
||||
return (
|
||||
<div>
|
||||
<Head text="لیست جراحی ها">
|
||||
<UpdateBtn />
|
||||
<AddBtn />
|
||||
</Head>
|
||||
<CustomTable
|
||||
|
||||
Reference in New Issue
Block a user