diff --git a/www/components/AuthWidget/AuthComponentExample.tsx b/www/components/AuthWidget/AuthComponentExample.tsx index 8e176a60892..dfb290252c4 100644 --- a/www/components/AuthWidget/AuthComponentExample.tsx +++ b/www/components/AuthWidget/AuthComponentExample.tsx @@ -97,34 +97,34 @@ function AuthComponentExample() { import { Auth, Typography, Button } from '@supabase/ui' import { createClient } from '@supabase/supabase-js' -export default function app() { - const supabase = createClient( - 'https://YOUR-PROJECT-ID.supabase.co', - 'YOUR-PUBLIC-ANON-KEY' - ) +export default function app() { + const supabase = createClient( + "https://YOUR-PROJECT-ID.supabase.co", + "YOUR-PUBLIC-ANON-KEY" + ); - const Container = (props: any) => { - const { user } = Auth.useUser() - if (user) { - return ( -
- Signed in: {user.email} - -
- ) - } - return props.children + function Container(props: any) { + const { user } = Auth.useUser(); + if (user) { + return ( +
+ Signed in: {user.email} + +
+ ) } + return props.children; + }; - return ( - - - - - - ) + return ( + + + + + + ); } `} lang="js"