|  |  |  | 
|---|
|  |  |  | import ConfirmButton from "../components/ConfirmButton"; | 
|---|
|  |  |  | import CloseIcon from '@mui/icons-material/Close'; | 
|---|
|  |  |  | import request from '@/utils/request'; | 
|---|
|  |  |  | import { red } from '@mui/material/colors'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
|---|
|  |  |  | '& .css-1vooibu-MuiSvgIcon-root': { | 
|---|
|  |  |  | 
|---|
|  |  |  | <FunctionField label="table.field.jam.duration" cellClassName="duration" render={record => ( | 
|---|
|  |  |  | <> | 
|---|
|  |  |  | {((record.duration > 6000)) | 
|---|
|  |  |  | ? <span style={{ color: 'red', fontWeight: 'bold' }}>{record.duration}</span> | 
|---|
|  |  |  | ? <span style={{ color: red[700], fontWeight: 'bold' }}>{record.duration}</span> | 
|---|
|  |  |  | : <span>{record.duration || "-"}</span> | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  ms | 
|---|