Skip to content

Commit

Permalink
Style(web-react): Must use destructurring assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Sep 22, 2023
1 parent 3dd7c3b commit 02a9dee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web-react/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const _Button = <T extends ElementType = 'button', C = void, S = void>(
style={styleProps.style}
>
{children}
{props.isLoading && <Spinner />}
{restProps.isLoading && <Spinner />}
</ElementTag>
);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/web-react/src/components/Button/ButtonLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const _ButtonLink = <T extends ElementType = 'a', C = void, S = void>(
style={styleProps.style}
>
{children}
{props.isLoading && <Spinner />}
{restProps.isLoading && <Spinner />}
</ElementTag>
);
};
Expand Down

0 comments on commit 02a9dee

Please sign in to comment.