Skip to content

Commit

Permalink
(hds-2069) Fix <Button> usage with children
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoHelle committed Oct 22, 2024
1 parent 04a46b3 commit d0d4bfe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const NumericStepper = () => {
return <TextInput id={id} onChange={onChange} value={String(value)} />;
};

const Action = (buttonProps: PropsWithChildren<{ id: string }>) => {
const Action = (buttonProps: PropsWithChildren<{ id: string; children: string }>) => {
const { id, children } = buttonProps;
const { trigger } = useContextDataHandlers();
const onClick: MouseEventHandler<HTMLButtonElement> = () => {
Expand Down Expand Up @@ -225,7 +225,7 @@ export const Form = () => {
);
};

const Action = (buttonProps: PropsWithChildren<{ id: string }>) => {
const Action = (buttonProps: PropsWithChildren<{ id: string; children: string }>) => {
const { id, children } = buttonProps;
const { trigger } = useContextDataHandlers();
const onClick: MouseEventHandler<HTMLButtonElement> = () => {
Expand Down

0 comments on commit d0d4bfe

Please sign in to comment.