diff --git a/apps/docs/src/usages/progress/circular-progress.tsx b/apps/docs/src/usages/progress/circular-progress.tsx index f617fe1..992f085 100644 --- a/apps/docs/src/usages/progress/circular-progress.tsx +++ b/apps/docs/src/usages/progress/circular-progress.tsx @@ -3,7 +3,7 @@ import { CircularProgress, Label, Slider, Switch } from 'actify' import { useState } from 'react' export default () => { - const [value, setValue] = useState('50') + const [value, setValue] = useState(50) const [indeterminate, setIndeterminate] = useState(true) return ( @@ -14,8 +14,8 @@ export default () => { setIndeterminate(e.target.checked)} + isSelected={indeterminate} + onChange={setIndeterminate} /> diff --git a/apps/docs/src/usages/progress/linear-progress.tsx b/apps/docs/src/usages/progress/linear-progress.tsx index 3caad72..5c20b92 100644 --- a/apps/docs/src/usages/progress/linear-progress.tsx +++ b/apps/docs/src/usages/progress/linear-progress.tsx @@ -3,7 +3,7 @@ import { Label, LinearProgress, Slider, Switch } from 'actify' import { useState } from 'react' export default () => { - const [value, setValue] = useState('50') + const [value, setValue] = useState(50) const [indeterminate, setIndeterminate] = useState(true) return ( @@ -15,8 +15,8 @@ export default () => { setIndeterminate(e.target.checked)} + isSelected={indeterminate} + onChange={setIndeterminate} />