1
0
Fork 0

[react] feat: Added docs for hooks/useControl

This commit is contained in:
joostdecock 2025-05-29 17:43:10 +02:00
parent a77a263ca0
commit 17e8e5ec09
4 changed files with 69 additions and 11 deletions

View file

@ -44,7 +44,7 @@ const strings = {
*/
export const Control = ({ welcome = false }) => {
// Hooks
const { control, updateControl } = useControl()
const { control, setControl } = useControl()
// Helper to get the link to the next onboarding step
const nextHref = welcome
@ -69,7 +69,7 @@ export const Control = ({ welcome = false }) => {
desc: controlDesc[val].desc,
}))}
current={control}
update={updateControl}
update={setControl}
/>
{welcome ? (
<>