[react] feat: Added docs for hooks/useControl
This commit is contained in:
parent
a77a263ca0
commit
17e8e5ec09
4 changed files with 69 additions and 11 deletions
|
@ -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 ? (
|
||||
<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue