Skip to content

Commit

Permalink
Try to improve diff again
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Jan 3, 2025
1 parent d40ea1d commit 2a547f6
Showing 1 changed file with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@ export const ChecklistItems = ({
formik,
exclusiveOptionIsChecked,
}: Props) => (
<>
{nonExclusiveOptions.map((option: Option) =>
layout === ChecklistLayout.Basic ? (
<FormWrapper key={option.id}>
<Grid item xs={12} key={option.data.text}>
<ChecklistItem
onChange={changeCheckbox(option.id)}
label={option.data.text}
id={option.id}
checked={
formik.values.checked.includes(option.id) &&
!exclusiveOptionIsChecked
}
/>
</Grid>
</FormWrapper>
) : (
<Grid item xs={12} sm={6} contentWrap={4} key={option.data.text}>
<ImageButton
title={option.data.text}
<>
{nonExclusiveOptions.map((option: Option) =>
layout === ChecklistLayout.Basic ? (
<FormWrapper key={option.id}>
<Grid item xs={12} key={option.data.text}>
<ChecklistItem
onChange={changeCheckbox(option.id)}
label={option.data.text}
id={option.id}
img={option.data.img}
selected={formik.values.checked.includes(option.id)}
onClick={changeCheckbox(option.id)}
checkbox
checked={
formik.values.checked.includes(option.id) &&
!exclusiveOptionIsChecked
}
/>
</Grid>
)
)}
</>
);
</FormWrapper>
) : (
<Grid item xs={12} sm={6} contentWrap={4} key={option.data.text}>
<ImageButton
checkbox
title={option.data.text}
id={option.id}
img={option.data.img}
selected={formik.values.checked.includes(option.id)}
onClick={changeCheckbox(option.id)}
/>
</Grid>
)
)}
</>
);

0 comments on commit 2a547f6

Please sign in to comment.