Skip to content

Commit

Permalink
let the whole rule base item be clickable (#4552)
Browse files Browse the repository at this point in the history
* let the whole rule base item be clickable

* lint fix
  • Loading branch information
danpriori authored May 30, 2024
1 parent 2ecb567 commit 1a4812e
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@ export const RuleBasedSelectionItem = ({
checked
}: RuleBasedSelectionItemProps): ReactElement => {
return (
<Menu.Item key={key}>
<Menu.Item
onClick={() => {
onChange(id);
}}
key={key}>
<Flex justifyContent="space-between" alignItems="center" gap={8}>
<Flex gap={4} alignItems="center">
<Icon type="ColorPalette" />
{label}
</Flex>
<Radio
name={id ?? ''}
value={id}
checked={checked}
onChange={(_: any, value: string | undefined) => {
onChange(value);
}}
/>
<Radio name={id ?? ''} value={id} checked={checked} />
</Flex>
</Menu.Item>
);
Expand Down

0 comments on commit 1a4812e

Please sign in to comment.