Emphasis missing mother and father
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2c0b6356b6
commit
433f8384a0
@ -4,7 +4,7 @@ import EditIcon from "@mui/icons-material/Edit";
|
|||||||
import FemaleIcon from "@mui/icons-material/Female";
|
import FemaleIcon from "@mui/icons-material/Female";
|
||||||
import MaleIcon from "@mui/icons-material/Male";
|
import MaleIcon from "@mui/icons-material/Male";
|
||||||
import VisibilityIcon from "@mui/icons-material/Visibility";
|
import VisibilityIcon from "@mui/icons-material/Visibility";
|
||||||
import { Button, TextField, Tooltip } from "@mui/material";
|
import { Button, TextField, Tooltip, Typography } from "@mui/material";
|
||||||
import { DataGrid, GridActionsCellItem, GridColDef } from "@mui/x-data-grid";
|
import { DataGrid, GridActionsCellItem, GridColDef } from "@mui/x-data-grid";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
@ -165,7 +165,8 @@ function MembersTable(p: {
|
|||||||
headerName: "Père",
|
headerName: "Père",
|
||||||
flex: 5,
|
flex: 5,
|
||||||
renderCell(params) {
|
renderCell(params) {
|
||||||
if (!params.row.father) return <></>;
|
if (!params.row.father)
|
||||||
|
return <Typography color="red">Non renseigné</Typography>;
|
||||||
return family.members.get(params.row.father)!.fullName;
|
return family.members.get(params.row.father)!.fullName;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -174,7 +175,8 @@ function MembersTable(p: {
|
|||||||
headerName: "Mère",
|
headerName: "Mère",
|
||||||
flex: 5,
|
flex: 5,
|
||||||
renderCell(params) {
|
renderCell(params) {
|
||||||
if (!params.row.mother) return <></>;
|
if (!params.row.mother)
|
||||||
|
return <Typography color="red">Non renseignée</Typography>;
|
||||||
return family.members.get(params.row.mother)!.fullName;
|
return family.members.get(params.row.mother)!.fullName;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user