Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Oct 14, 2024
1 parent c0bd932 commit eb35052
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apps/docs/src/usages/badges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import { Badge, Button, Icon, IconButton, Slider } from 'actify'

import { useState } from 'react'

type Color = 'primary' | 'secondary' | 'tertiary' | 'error'

export default () => {
const color = 'error'
const [value, setValue] = useState(99)
const [color, setColor] = useState<Color>('error')

return (
<>
Expand All @@ -23,11 +21,10 @@ export default () => {
<div className="mt-4 flex gap-4 flex-wrap">
<Slider
labeled
max={999}
value={value}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
setValue(parseInt(e.target.value))
}
maxValue={999}
// @ts-ignore
onChange={setValue}
/>
</div>
</>
Expand Down

0 comments on commit eb35052

Please sign in to comment.