Skip to content

Commit 53c5a87

Browse files
committed
removed doc code focus
1 parent e5b41ef commit 53c5a87

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/fern/docs/pages/getting-started/teams.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You can list all the teams a user belongs to by using the `listTeams` method or
3333

3434
<Tabs>
3535
<Tab title="Client Component">
36-
```tsx focus={5-10} title="List teams of a user on the client"
36+
```tsx title="List teams of a user on the client"
3737
"use client";
3838
import { useUser } from "@stackframe/stack";
3939

@@ -49,7 +49,7 @@ You can list all the teams a user belongs to by using the `listTeams` method or
4949
</Tab>
5050

5151
<Tab title="Server Component">
52-
```tsx focus={4-9} title="List teams of a user on the server"
52+
```tsx title="List teams of a user on the server"
5353
import { stackServerApp } from "@/stack";
5454

5555
export default async function DisplayUserTeams() {
@@ -71,7 +71,7 @@ To obtain details of a specific team that a user belongs to, use the `getTeam` m
7171

7272
<Tabs>
7373
<Tab title="Client Component">
74-
```tsx focus={5-10} title="Get a specific team of a user on the client"
74+
```tsx title="Get a specific team of a user on the client"
7575
"use client";
7676
import { useUser } from "@stackframe/stack";
7777

@@ -87,7 +87,7 @@ To obtain details of a specific team that a user belongs to, use the `getTeam` m
8787
</Tab>
8888

8989
<Tab title="Server Component">
90-
```tsx focus={4-9} title="Get a specific team of a user on the server"
90+
```tsx title="Get a specific team of a user on the server"
9191
import { stackServerApp } from "@/stack";
9292

9393
export default async function DisplayUserTeam(props: { teamId: string }) {
@@ -158,7 +158,7 @@ You can check if a user has a specific permission by using the `getPermission` m
158158

159159
<Tabs>
160160
<Tab title="Client Component">
161-
```tsx focus={5-11} title="Check user permission on the client"
161+
```tsx title="Check user permission on the client"
162162
"use client";
163163
import { useUser } from "@stackframe/stack";
164164

@@ -175,7 +175,7 @@ You can check if a user has a specific permission by using the `getPermission` m
175175
</Tab>
176176

177177
<Tab title="Server Component">
178-
```tsx focus={4-10} title="Check user permission on the server"
178+
```tsx title="Check user permission on the server"
179179
import { stackServerApp } from "@/stack";
180180

181181
export default async function CheckUserPermission() {
@@ -198,7 +198,7 @@ To get all permissions a user has, use the `listPermissions` method or `usePermi
198198

199199
<Tabs>
200200
<Tab title="Client Component" default>
201-
```tsx focus={5-10} title="List user permissions on the client"
201+
```tsx title="List user permissions on the client"
202202
"use client";
203203
import { useUser } from "@stackframe/stack";
204204

@@ -214,7 +214,7 @@ To get all permissions a user has, use the `listPermissions` method or `usePermi
214214
</Tab>
215215

216216
<Tab title="Server Component">
217-
```tsx focus={4-9} title="List user permissions on the server"
217+
```tsx title="List user permissions on the server"
218218
import { stackServerApp } from "@/stack";
219219

220220
export default async function DisplayUserPermissions() {

docs/fern/docs/pages/getting-started/users.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In [the last guide](./setup.mdx), we created `StackServerApp` and `StackProvider
88

99
We can use the `useStackApp()` hook to get a `StackClientApp` object. With it, we can retrieve the current user in Client Components:
1010

11-
```tsx focus={5-7} title="Client user profile"
11+
```tsx title="Client user profile"
1212
"use client";
1313
import { useStackApp } from "@stackframe/stack";
1414

@@ -25,7 +25,7 @@ Because it's so common, `useUser()` is also exposed as a standalone hook. This m
2525

2626
On Server Components, you don't need `useStackApp()`. Instead, you can just import the `StackServerApp` that you created in the previous chapter:
2727

28-
```tsx focus={4-5} title="Server user profile"
28+
```tsx title="Server user profile"
2929
import { stackServerApp } from "@/stack";
3030

3131
export default async function MyComponent() {
@@ -45,7 +45,7 @@ Call `useUser` (or `getUser`) with the `{ or: 'redirect' }` option to protect th
4545

4646
<Tabs>
4747
<Tab title="Client Component">
48-
```tsx focus={5-6} title="Client-side protection"
48+
```tsx title="Client-side protection"
4949
"use client";
5050
import { useUser } from "@stackframe/stack";
5151

@@ -57,7 +57,7 @@ Call `useUser` (or `getUser`) with the `{ or: 'redirect' }` option to protect th
5757
</Tab>
5858

5959
<Tab title="Server Component">
60-
```tsx focus={4-5} title="Server-side protection"
60+
```tsx title="Server-side protection"
6161
import { stackServerApp } from "@/stack";
6262

6363
export default async function Protected() {
@@ -76,7 +76,7 @@ You can sign out the user by redirecting them to `/handler/signout` or simply by
7676

7777
<Tabs>
7878
<Tab title="user.signOut()">
79-
```tsx focus={5-6} title="Sign-out button"
79+
```tsx title="Sign-out button"
8080
"use client";
8181
import { useUser } from "@stackframe/stack";
8282

@@ -88,7 +88,7 @@ You can sign out the user by redirecting them to `/handler/signout` or simply by
8888
</Tab>
8989

9090
<Tab title="Redirect">
91-
```tsx focus={4-4} title="Sign-out link"
91+
```tsx title="Sign-out link"
9292
import { stackServerApp } from "@/stack";
9393

9494
export default async function SignOutLink() {
@@ -176,7 +176,7 @@ To see more examples of how to use the `User` object, check out the [User API do
176176

177177
You can update the user's information by calling `user.update()` with the new data. The user data from the `userUser()` hook is automatically will also be updated automatically. Here is an example:
178178

179-
```tsx title="Update user display name" focus={6-8}
179+
```tsx title="Update user display name"
180180
'user client';
181181
import { useUser } from "@stackframe/stack";
182182

0 commit comments

Comments
 (0)