Skip to content

Commit

Permalink
Fix: feedback updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinedorbozgithub committed Sep 10, 2024
1 parent f881e80 commit 088be3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/app/patient-summary/components/generics/DetailedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ import {
TableRow,
TableCell,
TableBody,
styled,
} from '@mui/material';

import { ArrayCaption } from '@/app/components/typography/ArrayCaption';
import { IResourceType } from '@/types/fhir.types';

import { tableConfig } from './resource.types';

export const StyledTableCell = styled(TableCell)(() => ({
width: 0,
minWidth: '120px',
}));

export const DetailedTable = <T extends IResourceType[keyof IResourceType]>({
title,
columns,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { TableRow, TableCell } from '@mui/material';
import { TableRow } from '@mui/material';
import React from 'react';

import { EResourceType, TType } from '@/types/fhir.types';

import { StyledTableCell } from '../../generics/DetailedTable';
import { TRow, TTabProps } from '../../generics/resource.types';
import { TabSection } from '../../generics/TabSection';

Expand Down Expand Up @@ -40,10 +41,10 @@ export const AllergyIntolerance = <T extends TAllergyIntolerance>(
Object.entries(customFields).map(([key, val]) =>
row[key]?.coding?.map((data, index) => (
<TableRow key={`${JSON.stringify(data)}_${index}`}>
<TableCell>{val}</TableCell>
<TableCell>{data.code}</TableCell>
<TableCell>{data.display}</TableCell>
<TableCell>{data.system}</TableCell>
<StyledTableCell>{val}</StyledTableCell>
<StyledTableCell>{data.code}</StyledTableCell>
<StyledTableCell>{data.display}</StyledTableCell>
<StyledTableCell>{data.system}</StyledTableCell>
</TableRow>
)),
),
Expand Down

0 comments on commit 088be3b

Please sign in to comment.