Skip to content

Commit

Permalink
Try to fix the netlify build
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Mar 13, 2024
1 parent 2ee0b11 commit a9e6d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/productBaseUI/BaseUICustomization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ const StyledSwitchThumb = styled('span')`
`;

function SwitchFromHook(props: UseSwitchParameters) {
const { getInputProps, getButtonProps, checked, disabled } = useSwitch(props);
const { getInputProps, checked, disabled } = useSwitch(props);

const stateAttributes = {
'data-state': checked ? 'checked' : 'unchecked',
'data-disabled': disabled || undefined,
};

return (
<StyledSwitchRoot aria-label="Demo switch" {...getButtonProps()} {...stateAttributes}>
<StyledSwitchRoot aria-label="Demo switch" {...stateAttributes}>
<StyledSwitchThumb {...stateAttributes} />
<input {...getInputProps()} />
</StyledSwitchRoot>
Expand Down

0 comments on commit a9e6d54

Please sign in to comment.