Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeprins committed Sep 5, 2022
1 parent d163232 commit b8fe2b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export interface Props extends HTMLAttributes<HTMLInputElement> {
closeIconClassName?: string
prepend?: string
append?: string
min?: number
max?: number
step?: number
}

export const TextInput = forwardRef<HTMLInputElement, Props>(function TextInput(
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ToggleComponent = forwardRef<HTMLButtonElement, Props>(function Tog
<span
data-testid="toggler"
className={classNames(
'pointer-events-none inline-block h-5 w-5 rounded-full bg-white dark:bg-gray-200 shadow transform ring-0 transition ease-in-out duration-700',
'pointer-events-none inline-block h-5 w-5 rounded-full bg-white dark:bg-gray-400 shadow transform ring-0 transition ease-in-out duration-700',
{
'translate-x-5': isEnabled,
'translate-x-0': !isEnabled,
Expand Down

1 comment on commit b8fe2b1

@vercel
Copy link

@vercel vercel bot commented on b8fe2b1 Sep 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.