Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/components/Reports/Shared/GoalCard/GoalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,15 @@
/>

<StyledCard>
<StyledHeaderBox sx={badge ? { gap: 1 } : undefined}>
<StyledHeaderBox
sx={badge ? { flexDirection: 'column', gap: 1 } : undefined}
Comment thread
wjames111 marked this conversation as resolved.
>
<Tooltip title={displayName}>
<Typography
data-testid="goal-name"
variant="h6"
noWrap
sx={{
textAlign: 'center',
...(badge ? { minWidth: 0 } : { width: '100%' }),
}}
sx={{ textAlign: 'center', width: '100%' }}

Check notice on line 118 in src/components/Reports/Shared/GoalCard/GoalCard.tsx

View check run for this annotation

CodeScene Delta Analysis / CodeScene Code Health Review (main)

✅ Getting better: Large Method

GoalCard:React.FC<GoalCardProps> decreases from 108 to 107 lines of code, threshold = 100. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.
>
{displayName}
</Typography>
Expand Down
Loading