Fixed wrong highlight in Building your application > authentication > useFormStatus hook example (#65400)

Wrong line highlight for useFormStatus example in authentication module

---------

Co-authored-by: samcx <sam@vercel.com>
This commit is contained in:
Mohd. Nisab 2024-05-07 01:25:07 +05:30 committed by GitHub
parent 93c0e64a36
commit 53c08431c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -290,7 +290,7 @@ export function SignupForm() {
You can also use the `useFormStatus()` hook to handle the pending state on form submission:
```tsx filename="app/ui/signup-form.tsx" highlight={7} switcher
```tsx filename="app/ui/signup-form.tsx" highlight={6} switcher
'use client'
import { useFormStatus, useFormState } from 'react-dom'
@ -306,7 +306,7 @@ export function SignupButton() {
}
```
```jsx filename="app/ui/signup-form.js" highlight={7} switcher
```jsx filename="app/ui/signup-form.js" highlight={6} switcher
'use client'
import { useFormStatus, useFormState } from 'react-dom'