Skip to content

Commit

Permalink
fix(SwitchButton): incorrect onchange type (#4786)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrazeur authored Feb 19, 2025
1 parent 8413cad commit d764e76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-months-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

fix(SwitchButton): incorrect onchange type
8 changes: 4 additions & 4 deletions packages/ui/src/components/SwitchButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ const StyledBorderedBox = styled.div<{ 'data-size': 'small' | 'medium' }>`
}
`
type SwitchButtonProps = {
name: string
onBlur?: FocusEventHandler
onChange: ChangeEventHandler
onFocus?: FocusEventHandler
name?: string
onBlur?: FocusEventHandler<HTMLInputElement>
onChange: ChangeEventHandler<HTMLInputElement>
onFocus?: FocusEventHandler<HTMLInputElement>
tooltip?: string
value?: string | number
leftButton: {
Expand Down

0 comments on commit d764e76

Please sign in to comment.