Skip to content

Commit

Permalink
feat: enable label clickling (#437)
Browse files Browse the repository at this point in the history
Co-authored-by: Pritish Budhiraja <[email protected]>
  • Loading branch information
gitanjli525 and Pritish Budhiraja authored Feb 27, 2024
1 parent fa88ced commit bc517e2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/screens/Connectors/ConnectorUIUtils/PaymentMethod.res
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ module CardRenderer = {
{provider
->Array.mapWithIndex((value, i) => {
<div key={i->Int.toString}>
<div className="flex items-center gap-2 break-words">
<div className="flex">
<AddDataAttributes
attributes=[
(
Expand All @@ -161,13 +161,15 @@ module CardRenderer = {
->String.toLowerCase}`,
),
]>
<div onClick={_e => removeOrAddMethods(value)}>
<CheckBoxIcon isSelected={isSelected(value)} />
<div className="flex items-center gap-2">
<div onClick={_ => removeOrAddMethods(value)}>
<CheckBoxIcon isSelected={isSelected(value)} />
</div>
<p className=p2RegularTextStyle onClick={_ => removeOrAddMethods(value)}>
{React.string(value.payment_method_type->snakeToTitle)}
</p>
</div>
</AddDataAttributes>
<p className=p2RegularTextStyle>
{React.string(value.payment_method_type->snakeToTitle)}
</p>
</div>
</div>
})
Expand Down

0 comments on commit bc517e2

Please sign in to comment.