Skip to content

Commit

Permalink
Show summary only if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bluprince13 committed Jul 21, 2024
1 parent 6fac1e6 commit 2c4fe58
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/ComparisonTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,17 @@ export const ComparisonTable: React.FC<TableProps> = ({
</TableBody>
</Table>
</TableContainer>
<Typography
variant="body1"
sx={{ fontWeight: 'bold', marginTop: 2 }}
>
Summary:
</Typography>
<Typography variant="body1">{summary}</Typography>
{summary && (
<>
<Typography
variant="body1"
sx={{ fontWeight: 'bold', marginTop: 2 }}
>
Summary:
</Typography>
<Typography variant="body1">{summary}</Typography>
</>
)}
<Divider sx={{ marginTop: 2, marginBottom: 4 }} />
</Box>
)
Expand Down

1 comment on commit 2c4fe58

@vercel
Copy link

@vercel vercel bot commented on 2c4fe58 Jul 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.