Skip to content

Commit 5ac27ea

Browse files
fix(content-picker): fix PrimaryButton props typing
1 parent 6e813e9 commit 5ac27ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elements/content-picker/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ const Footer = ({
9393
<Tooltip isDisabled={isChooseButtonDisabled} text={chooseButtonLabel || chooseMessage}>
9494
<PrimaryButton
9595
aria-label={chooseMessage}
96-
disabled={isChooseButtonDisabled} // sets disabled attribute for native HTML button
97-
isDisabled={isChooseButtonDisabled} // used in Button component
96+
isDisabled={isChooseButtonDisabled}
9897
onClick={onChoose}
9998
type={ButtonType.BUTTON}
99+
{...{ disabled: isChooseButtonDisabled }} // sets disabled attribute for native HTML button
100100
>
101101
<IconCheck color="#fff" height={16} width={16} />
102102
</PrimaryButton>

0 commit comments

Comments
 (0)