File tree 1 file changed +3
-3
lines changed
docs/02-app/01-building-your-application/01-routing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ Both [`useSelectedLayoutSegment`](/docs/app/api-reference/functions/use-selected
111
111
import { useSelectedLayoutSegment } from ' next/navigation'
112
112
113
113
export default function Layout({ auth }: { auth: React .ReactNode }) {
114
- const loginSegments = useSelectedLayoutSegment (' auth' )
114
+ const loginSegment = useSelectedLayoutSegment (' auth' )
115
115
// ...
116
116
}
117
117
```
@@ -122,12 +122,12 @@ export default function Layout({ auth }: { auth: React.ReactNode }) {
122
122
import { useSelectedLayoutSegment } from ' next/navigation'
123
123
124
124
export default function Layout ({ auth }) {
125
- const loginSegments = useSelectedLayoutSegment (' auth' )
125
+ const loginSegment = useSelectedLayoutSegment (' auth' )
126
126
// ...
127
127
}
128
128
```
129
129
130
- When a user navigates to ` app/@auth/login ` (or ` /login ` in the URL bar), ` loginSegments ` will be equal to the string ` "login" ` .
130
+ When a user navigates to ` app/@auth/login ` (or ` /login ` in the URL bar), ` loginSegment ` will be equal to the string ` "login" ` .
131
131
132
132
## Examples
133
133
You can’t perform that action at this time.
0 commit comments