Skip to content

Commit c10d24c

Browse files
docs: update sidebar elements positions
1 parent d755a4e commit c10d24c

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

docs/docs/JOTAI-STATE-MANAGEMENT.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
id: jotai
33
slug: /jotai
44
title: State management - jotai
5-
sidebar_position: 3
5+
sidebar_position: 4
66
tags:
77
- Jotai
88
- State management
@@ -46,7 +46,9 @@ import { useAtomValue } from 'jotai'
4646
import { isSignedInAtom, userNameAtom } from '@baca/store/auth'
4747

4848
export const UserName = () => {
49+
// success-line
4950
const isSignedIn = useAtomValue(isSignedInAtom)
51+
// success-line
5052
const userName = useAtomValue(userNameAtom)
5153

5254
if (isSignedIn) {
@@ -64,7 +66,9 @@ import { store } from '@baca/store'
6466
import { isSignedInAtom, userNameAtom } from '@baca/store/auth'
6567

6668
const getUserName = () => {
69+
// success-line
6770
const isSignedIn = store.get(isSignedInAtom)
71+
// success-line
6872
const userName = store.get(userNameAtom)
6973

7074
if (isSignedIn) {
@@ -84,11 +88,13 @@ import { isSignedInAtom } from '@baca/store/auth'
8488

8589
const SignInButton = () => {
8690
// Optionbally you can use `useSetAtom()`
91+
// success-line
8792
const [isSignedIn, setIsSignedIn] = useAtom(isSignedInAtom)
8893

8994
const handleSignIn = () => {
9095
// Handle logic on backend
9196

97+
// success-line
9298
setIsSignedIn(true)
9399
}
94100

@@ -109,6 +115,7 @@ import { isSignedInAtom } from '@baca/store/auth'
109115
const handleSignIn = () => {
110116
// Handle logic on backend
111117

118+
// success-line
112119
store.set(isSignedInAtom, true)
113120
}
114121

docs/docs/deploy/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "Deployment",
3-
"position": 4,
3+
"position": 6,
44
"collapsible": true,
55
"collapsed": false,
66
"link": {

docs/docs/tutorials/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "Tutorials",
3-
"position": 5,
3+
"position": 7,
44
"collapsible": true,
55
"collapsed": false,
66
"link": {

0 commit comments

Comments
 (0)