05/06/2024 - 23h
parent
94a200c6fe
commit
806708a266
|
@ -10,7 +10,7 @@ import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
|
|||
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
|
||||
import { Editor } from '@tinymce/tinymce-react';
|
||||
import parse from 'html-react-parser';
|
||||
import { FcViewDetails, FcDisapprove, FcInfo } from "react-icons/fc";
|
||||
import { FcViewDetails, FcDisapprove, FcInfo, FcExpired } from "react-icons/fc";
|
||||
import 'react-tooltip/dist/react-tooltip.css'
|
||||
import { Tooltip } from 'react-tooltip'
|
||||
import add_plus from "../mysy_img/plus.png";
|
||||
|
@ -195,7 +195,31 @@ const DisplayPartnerSession = (props) => {
|
|||
const columns = [
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'session_alert_message', headerName: 'session_alert_message', hide: true },
|
||||
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true },
|
||||
|
||||
{
|
||||
field: 'is_session_alert', headerName: '', hide: false, Width: 50, flex: 1,
|
||||
|
||||
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all" }}>
|
||||
{cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) === "1" && <nav>
|
||||
<Tooltip className="tooltip_css" id="my_tooltip_alert_1" />
|
||||
<a data-tooltip-id="my_tooltip_alert_1" data-tooltip-html={`${cellValues.row.session_alert_message}`}>
|
||||
<FcExpired />
|
||||
</a>
|
||||
</nav>}
|
||||
{cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) !== "1" && ""}
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
{ field: 'code_session', headerName: 'Code session', hide: false, minWidth: 200, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
{ field: 'session_title', headerName: 'Titre', hide: false, flex: 1, minWidth: 250, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
|
||||
|
@ -13030,7 +13054,8 @@ const DisplayPartnerSession = (props) => {
|
|||
qty_in_quotation: JSON.parse(item).qty_in_quotation,
|
||||
qty_in_quotation_list_quotation: JSON.parse(item).qty_in_quotation_list_quotation,
|
||||
|
||||
|
||||
is_session_alert: JSON.parse(item).is_session_alert,
|
||||
session_alert_message: JSON.parse(item).session_alert_message,
|
||||
}
|
||||
))}
|
||||
|
||||
|
|
Loading…
Reference in New Issue