From 433f8384a051de7afef848471c3fd1bd8c8d627b Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 31 Aug 2023 20:39:17 +0200 Subject: [PATCH] Emphasis missing mother and father --- geneit_app/src/routes/family/FamilyMembersListRoute.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/geneit_app/src/routes/family/FamilyMembersListRoute.tsx b/geneit_app/src/routes/family/FamilyMembersListRoute.tsx index bb0eac9..49cc89a 100644 --- a/geneit_app/src/routes/family/FamilyMembersListRoute.tsx +++ b/geneit_app/src/routes/family/FamilyMembersListRoute.tsx @@ -4,7 +4,7 @@ import EditIcon from "@mui/icons-material/Edit"; import FemaleIcon from "@mui/icons-material/Female"; import MaleIcon from "@mui/icons-material/Male"; 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 React from "react"; import { useNavigate } from "react-router-dom"; @@ -165,7 +165,8 @@ function MembersTable(p: { headerName: "Père", flex: 5, renderCell(params) { - if (!params.row.father) return <>; + if (!params.row.father) + return Non renseigné; return family.members.get(params.row.father)!.fullName; }, }, @@ -174,7 +175,8 @@ function MembersTable(p: { headerName: "Mère", flex: 5, renderCell(params) { - if (!params.row.mother) return <>; + if (!params.row.mother) + return Non renseignée; return family.members.get(params.row.mother)!.fullName; }, },