Skip to content

Commit caa6a43

Browse files
docs: fix code block language on forbidden (#73622)
## Summary Change `tsx` and `jsx` to `ts` and `js` code block. ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide
1 parent 0a3dd36 commit caa6a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/01-app/03-api-reference/04-functions/forbidden.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default async function AdminPage() {
125125

126126
When implementing mutations in Server Actions, you can use `forbidden` to only allow users with a specific role to update sensitive data.
127127

128-
```tsx filename="app/actions/update-role.ts" switcher
128+
```ts filename="app/actions/update-role.ts" switcher
129129
'use server'
130130

131131
import { verifySession } from '@/app/lib/dal'
@@ -145,7 +145,7 @@ export async function updateRole(formData: FormData) {
145145
}
146146
```
147147

148-
```jsx filename="app/actions/update-role.js" switcher
148+
```js filename="app/actions/update-role.js" switcher
149149
'use server'
150150

151151
import { verifySession } from '@/app/lib/dal'

0 commit comments

Comments
 (0)