diff --git a/web/docs/guides/with-react.mdx b/web/docs/guides/with-react.mdx
index 6dbdfa4851c..40e73002da9 100644
--- a/web/docs/guides/with-react.mdx
+++ b/web/docs/guides/with-react.mdx
@@ -230,23 +230,27 @@ export default function Auth() {
return (
-
+
Supabase + React
Sign in via magic link with your email below
-
-
+ {loading ? (
+ 'Sending magic link...'
+ ) : (
+
+ )}
)
@@ -263,7 +267,7 @@ Let's create a new component for that called `Account.js`.
import { useState, useEffect } from 'react'
import { supabase } from './supabaseClient'
-export default ({ session }) => {
+const Account = ({ session }) => {
const [loading, setLoading] = useState(true)
const [username, setUsername] = useState(null)
const [website, setWebsite] = useState(null)
@@ -330,39 +334,45 @@ export default ({ session }) => {
}
return (
- <>
-
+
+ {loading ? (
+ 'Saving ...'
+ ) : (
+
+ )}
- >
+
)
}
+
+export default Account
```
### Launch!
@@ -467,25 +477,27 @@ export default ({ url, size, onUpload }) => {
}
return (
-