change style

This commit is contained in:
AmirHossein Mahmoodi
2025-03-05 10:24:12 +03:30
parent c9410da5ef
commit 9abfd54b50
7 changed files with 27 additions and 27 deletions

View File

@@ -129,8 +129,8 @@ const OperatorList = () => {
props.dependencyFieldValue?.value === "" props.dependencyFieldValue?.value === ""
? "empty" ? "empty"
: loadingEdaratList : loadingEdaratList
? "loading" ? "loading"
: props.filterParameters.value : props.filterParameters.value
} }
columnSelectOption={getColumnSelectOptions} columnSelectOption={getColumnSelectOptions}
/> />
@@ -256,7 +256,7 @@ const OperatorList = () => {
} }
return ( return (
<Typography textAlign={"center"} variant="body2"> <Typography textAlign={"center"} variant="body2">
بدون تصویر -
</Typography> </Typography>
); );
}, },

View File

@@ -115,8 +115,8 @@ const ComplaintListTable = ({ open, setOpen, mutate }) => {
props.dependencyFieldValue?.value === "" props.dependencyFieldValue?.value === ""
? "empty" ? "empty"
: loadingEdaratList : loadingEdaratList
? "loading" ? "loading"
: props.filterParameters.value : props.filterParameters.value
} }
columnSelectOption={getColumnSelectOptions} columnSelectOption={getColumnSelectOptions}
/> />
@@ -196,7 +196,7 @@ const ComplaintListTable = ({ open, setOpen, mutate }) => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {

View File

@@ -105,7 +105,7 @@ const OperatorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {
@@ -126,7 +126,7 @@ const OperatorList = () => {
}, },
}, },
Cell: ({ row }) => { Cell: ({ row }) => {
if (!row.original.rms_start_latlng) return <>بدون موقعیت</>; if (!row.original.rms_start_latlng) return <>-</>;
return ( return (
<Stack alignItems={"center"} justifyContent={"center"}> <Stack alignItems={"center"} justifyContent={"center"}>
<LocationForm <LocationForm
@@ -155,7 +155,7 @@ const OperatorList = () => {
}, },
}, },
Cell: ({ row }) => { Cell: ({ row }) => {
if (!row.original?.image_before && !row.original?.image_after) return <>بدون تصویر</>; if (!row.original?.image_before && !row.original?.image_after) return <>-ر</>;
return ( return (
<Stack alignItems={"center"} justifyContent={"center"}> <Stack alignItems={"center"} justifyContent={"center"}>
{row.original?.image_before && row.original?.image_after && ( {row.original?.image_before && row.original?.image_after && (
@@ -199,7 +199,7 @@ const OperatorList = () => {
accessorFn: (row) => { accessorFn: (row) => {
return row.rms_last_activity return row.rms_last_activity
? moment(row?.rms_last_activity).locale("fa").format("HH:mm | yyyy/MM/DD") ? moment(row?.rms_last_activity).locale("fa").format("HH:mm | yyyy/MM/DD")
: "بدون تاریخ"; : "-";
}, },
header: "تاریخ اقدام", header: "تاریخ اقدام",
id: "rms_last_activity", id: "rms_last_activity",
@@ -241,7 +241,7 @@ const OperatorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {
@@ -276,7 +276,7 @@ const OperatorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {

View File

@@ -125,8 +125,8 @@ const SupervisorList = () => {
props.dependencyFieldValue?.value === "" props.dependencyFieldValue?.value === ""
? "empty" ? "empty"
: loadingEdaratList : loadingEdaratList
? "loading" ? "loading"
: props.filterParameters.value : props.filterParameters.value
} }
columnSelectOption={getColumnSelectOptions} columnSelectOption={getColumnSelectOptions}
/> />
@@ -206,7 +206,7 @@ const SupervisorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {
@@ -227,7 +227,7 @@ const SupervisorList = () => {
}, },
}, },
Cell: ({ row }) => { Cell: ({ row }) => {
if (!row.original.rms_start_latlng) return <>بدون موقعیت</>; if (!row.original.rms_start_latlng) return <>-</>;
return ( return (
<Stack alignItems={"center"} justifyContent={"center"}> <Stack alignItems={"center"} justifyContent={"center"}>
<LocationForm <LocationForm
@@ -256,7 +256,7 @@ const SupervisorList = () => {
}, },
}, },
Cell: ({ row }) => { Cell: ({ row }) => {
if (!row.original?.image_before && !row.original?.image_after) return <>بدون تصویر</>; if (!row.original?.image_before && !row.original?.image_after) return <>-</>;
return ( return (
<Stack alignItems={"center"} justifyContent={"center"}> <Stack alignItems={"center"} justifyContent={"center"}>
{row.original?.image_before && row.original?.image_after && ( {row.original?.image_before && row.original?.image_after && (
@@ -300,7 +300,7 @@ const SupervisorList = () => {
accessorFn: (row) => { accessorFn: (row) => {
return row.rms_last_activity return row.rms_last_activity
? moment(row?.rms_last_activity).locale("fa").format("HH:mm | yyyy/MM/DD") ? moment(row?.rms_last_activity).locale("fa").format("HH:mm | yyyy/MM/DD")
: "بدون تاریخ"; : "-";
}, },
header: "تاریخ اقدام", header: "تاریخ اقدام",
id: "rms_last_activity", id: "rms_last_activity",
@@ -342,7 +342,7 @@ const SupervisorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {
@@ -377,7 +377,7 @@ const SupervisorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {

View File

@@ -120,8 +120,8 @@ const OperatorList = () => {
props.dependencyFieldValue.value === "" props.dependencyFieldValue.value === ""
? "empty" ? "empty"
: loadingSubItemsList : loadingSubItemsList
? "loading" ? "loading"
: props.filterParameters.value : props.filterParameters.value
} }
columnSelectOption={getColumnSelectOptions} columnSelectOption={getColumnSelectOptions}
/> />
@@ -330,7 +330,7 @@ const OperatorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون توضیحات</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
], ],

View File

@@ -79,7 +79,7 @@ const OperatorList = () => {
</Stack> </Stack>
); );
} }
return <Typography variant="body2">بدون شخص</Typography>; return <Typography variant="body2">-</Typography>;
}, },
}, },
{ {

View File

@@ -119,8 +119,8 @@ const SupervisorList = () => {
props.dependencyFieldValue?.value === "" props.dependencyFieldValue?.value === ""
? "empty" ? "empty"
: loadingEdaratList : loadingEdaratList
? "loading" ? "loading"
: props.filterParameters.value : props.filterParameters.value
} }
columnSelectOption={getColumnSelectOptions} columnSelectOption={getColumnSelectOptions}
/> />
@@ -179,7 +179,7 @@ const SupervisorList = () => {
<RahdaranDialog rahdarLists={renderedCellValue} /> <RahdaranDialog rahdarLists={renderedCellValue} />
</Stack> </Stack>
) : ( ) : (
<Typography variant="body2">بدون شخص</Typography> <Typography variant="body2">-</Typography>
), ),
}, },
{ {