Merge branch 'feature/amin_plate_structure' into 'develop'
restructured plate number column in data table See merge request witel-front-end/loan-facilities/expert!139
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {Box, Typography} from "@mui/material";
|
import {Box, Stack, Typography} from "@mui/material";
|
||||||
import {useMemo} from "react";
|
import {useMemo} from "react";
|
||||||
import {GET_LOAN_HISTORY} from "@/core/data/apiRoutes";
|
import {GET_LOAN_HISTORY} from "@/core/data/apiRoutes";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
@@ -267,7 +267,25 @@ function DashboardLoanHistoryComponent() {
|
|||||||
filterFn: "contains",
|
filterFn: "contains",
|
||||||
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
||||||
Cell: ({renderedCellValue}) => (
|
Cell: ({renderedCellValue}) => (
|
||||||
<Typography variant="body2">{renderedCellValue}</Typography>
|
<Stack sx={{border: 1, borderColor: "divider", borderRadius: 1}} direction={'row'}>
|
||||||
|
<Stack sx={{borderRight: 1, borderColor: "divider", textAlign: 'center', width: "40%"}}>
|
||||||
|
{renderedCellValue.split('-')[3]}
|
||||||
|
</Stack>
|
||||||
|
<Stack direction={'row'} sx={{width: "100%", px: 0.5}}>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[2]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[1]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[0]}</Stack>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Box, Typography} from "@mui/material";
|
import {Box, Stack, Typography} from "@mui/material";
|
||||||
import {useMemo} from "react";
|
import {useMemo} from "react";
|
||||||
import {GET_MACHINARY_OFFICE} from "@/core/data/apiRoutes";
|
import {GET_MACHINARY_OFFICE} from "@/core/data/apiRoutes";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
@@ -267,7 +267,25 @@ function DashboardMachinaryOfficeComponent() {
|
|||||||
filterFn: "contains",
|
filterFn: "contains",
|
||||||
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
||||||
Cell: ({renderedCellValue}) => (
|
Cell: ({renderedCellValue}) => (
|
||||||
<Typography variant="body2">{renderedCellValue}</Typography>
|
<Stack sx={{border: 1, borderColor: "divider", borderRadius: 1}} direction={'row'}>
|
||||||
|
<Stack sx={{borderRight: 1, borderColor: "divider", textAlign: 'center', width: "40%"}}>
|
||||||
|
{renderedCellValue.split('-')[3]}
|
||||||
|
</Stack>
|
||||||
|
<Stack direction={'row'} sx={{width: "100%", px: 0.5}}>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[2]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[1]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[0]}</Stack>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Box, Typography} from "@mui/material";
|
import {Box, Stack, Typography} from "@mui/material";
|
||||||
import {useMemo} from "react";
|
import {useMemo} from "react";
|
||||||
import {GET_LOAN_MANAGEMENT_NAVGAN} from "@/core/data/apiRoutes";
|
import {GET_LOAN_MANAGEMENT_NAVGAN} from "@/core/data/apiRoutes";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
@@ -268,7 +268,25 @@ function DashboardNavganLoanManagementComponent() {
|
|||||||
filterFn: "contains",
|
filterFn: "contains",
|
||||||
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
||||||
Cell: ({renderedCellValue}) => (
|
Cell: ({renderedCellValue}) => (
|
||||||
<Typography variant="body2">{renderedCellValue}</Typography>
|
<Stack sx={{border: 1, borderColor: "divider", borderRadius: 1}} direction={'row'}>
|
||||||
|
<Stack sx={{borderRight: 1, borderColor: "divider", textAlign: 'center', width: "40%"}}>
|
||||||
|
{renderedCellValue.split('-')[3]}
|
||||||
|
</Stack>
|
||||||
|
<Stack direction={'row'} sx={{width: "100%", px: 0.5}}>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[2]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[1]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[0]}</Stack>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Box, Typography} from "@mui/material";
|
import {Box, Stack, Typography} from "@mui/material";
|
||||||
import {useMemo} from "react";
|
import {useMemo} from "react";
|
||||||
import {GET_NAVGAN_PROVINCE_MANAGER} from "@/core/data/apiRoutes";
|
import {GET_NAVGAN_PROVINCE_MANAGER} from "@/core/data/apiRoutes";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
@@ -211,7 +211,25 @@ function DashboardNavganProvinceManagerComponent() {
|
|||||||
filterFn: "contains",
|
filterFn: "contains",
|
||||||
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
||||||
Cell: ({renderedCellValue}) => (
|
Cell: ({renderedCellValue}) => (
|
||||||
<Typography variant="body2">{renderedCellValue}</Typography>
|
<Stack sx={{border: 1, borderColor: "divider", borderRadius: 1}} direction={'row'}>
|
||||||
|
<Stack sx={{borderRight: 1, borderColor: "divider", textAlign: 'center', width: "40%"}}>
|
||||||
|
{renderedCellValue.split('-')[3]}
|
||||||
|
</Stack>
|
||||||
|
<Stack direction={'row'} sx={{width: "100%", px: 0.5}}>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[2]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[1]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[0]}</Stack>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Box, Typography} from "@mui/material";
|
import {Box, Stack, Typography} from "@mui/material";
|
||||||
import {useMemo} from "react";
|
import {useMemo} from "react";
|
||||||
import {GET_PASSENGER_BOSS} from "@/core/data/apiRoutes";
|
import {GET_PASSENGER_BOSS} from "@/core/data/apiRoutes";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
@@ -268,7 +268,25 @@ function DashboardPassengerOfficeComponent() {
|
|||||||
filterFn: "contains",
|
filterFn: "contains",
|
||||||
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
||||||
Cell: ({renderedCellValue}) => (
|
Cell: ({renderedCellValue}) => (
|
||||||
<Typography variant="body2">{renderedCellValue}</Typography>
|
<Stack sx={{border: 1, borderColor: "divider", borderRadius: 1}} direction={'row'}>
|
||||||
|
<Stack sx={{borderRight: 1, borderColor: "divider", textAlign: 'center', width: "40%"}}>
|
||||||
|
{renderedCellValue.split('-')[3]}
|
||||||
|
</Stack>
|
||||||
|
<Stack direction={'row'} sx={{width: "100%", px: 0.5}}>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[2]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[1]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[0]}</Stack>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {Box, Typography} from "@mui/material";
|
import {Box, Stack, Typography} from "@mui/material";
|
||||||
import {useMemo} from "react";
|
import {useMemo} from "react";
|
||||||
import {GET_TRANSPORTATION_ASSISTANCE} from "@/core/data/apiRoutes";
|
import {GET_TRANSPORTATION_ASSISTANCE} from "@/core/data/apiRoutes";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
@@ -211,7 +211,25 @@ function DashboardTransportationAssistanceComponent() {
|
|||||||
filterFn: "contains",
|
filterFn: "contains",
|
||||||
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
columnFilterModeOptions: ["contains", "equals", "notEquals"],
|
||||||
Cell: ({renderedCellValue}) => (
|
Cell: ({renderedCellValue}) => (
|
||||||
<Typography variant="body2">{renderedCellValue}</Typography>
|
<Stack sx={{border: 1, borderColor: "divider", borderRadius: 1}} direction={'row'}>
|
||||||
|
<Stack sx={{borderRight: 1, borderColor: "divider", textAlign: 'center', width: "40%"}}>
|
||||||
|
{renderedCellValue.split('-')[3]}
|
||||||
|
</Stack>
|
||||||
|
<Stack direction={'row'} sx={{width: "100%", px: 0.5}}>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[2]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[1]}</Stack>
|
||||||
|
<Stack sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
width: "100%"
|
||||||
|
}}>{renderedCellValue.split('-')[0]}</Stack>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user