1
- import { redirect } from ' next/navigation'
2
- import { createClient } from ' @/utils/supabase/server'
1
+ import { redirect } from " next/navigation" ;
2
+ import { createClient } from " @/utils/supabase/server" ;
3
3
4
4
export default async function Settings ( ) {
5
- const supabase = createClient ( )
5
+ const supabase = createClient ( ) ;
6
6
7
- const { data, error } = await supabase . auth . getUser ( )
7
+ const { data, error } = await supabase . auth . getUser ( ) ;
8
8
if ( error || ! data ?. user ) {
9
- redirect ( ' /signin' )
9
+ redirect ( " /signin" ) ;
10
10
}
11
-
11
+
12
12
return (
13
13
< section className = "relative" >
14
- < div className = "max-w-6xl mx-auto px-4 sm:px-6" >
15
- < div className = "pt-32 pb-12 md:pt-40 md:pb-20" >
16
-
14
+ < div className = "mx-auto max-w-6xl px-4 sm:px-6" >
15
+ < div className = "pb-12 pt-32 md:pb-20 md:pt-40" >
17
16
{ /* Page header */ }
18
- < div className = "max-w-3xl mx-auto text-center pb-12 md:pb-20" >
19
- < h1 className = "h1" > Settings</ h1 >
17
+ < div className = "mx-auto max-w-3xl pb-12 text-center md:pb-20" >
18
+ < h1 className = "h1" > Settings</ h1 >
20
19
</ div >
21
20
22
21
{ /* Settings */ }
23
- < div className = "max-w-sm mx-auto " >
24
- < div className = "flex flex-wrap - mx-3 mb-4" >
22
+ < div className = "mx-auto max-w-sm" >
23
+ < div className = "- mx-3 mb-4 flex flex-wrap " >
25
24
< div className = "w-full px-3" >
26
- < p className = "text-gray-300 text-sm font-medium mb-1 " >
25
+ < p className = "mb-1 text-sm font-medium text-gray-300 " >
27
26
Full Name: { data . user . user_metadata . full_name }
28
27
</ p >
29
- < p className = "text-gray-300 text-sm font-medium mb-1 " >
28
+ < p className = "mb-1 text-sm font-medium text-gray-300 " >
30
29
Email: { data . user . email }
31
30
</ p >
32
31
</ div >
@@ -35,5 +34,5 @@ export default async function Settings() {
35
34
</ div >
36
35
</ div >
37
36
</ section >
38
- )
39
- }
37
+ ) ;
38
+ }
0 commit comments