File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,29 +3,29 @@ import { Button } from "@/components/ui/button";
33import { useAuth } from "@/lib/use-auth" ;
44
55export function meta ( ) {
6- return [
7- { title : "Markly" } ,
8- { name : "description" , content : "Welcome to React Router!" } ,
9- ] ;
6+ return [
7+ { title : "Markly" } ,
8+ { name : "description" , content : "Welcome to React Router!" } ,
9+ ] ;
1010}
1111
1212export default function Home ( ) {
13- const { session, isAuthenticated, isPending, signOut } = useAuth ( ) ;
13+ const { session, isAuthenticated, isPending, signOut } = useAuth ( ) ;
1414
15- if ( isPending ) {
16- return < div > Loading...</ div > ;
17- }
15+ if ( isPending ) {
16+ return < div > Loading...</ div > ;
17+ }
1818
19- return (
20- < div className = "flex h-svh items-center justify-center" >
21- { isAuthenticated ? (
22- < div >
23- < div > { JSON . stringify ( session , null , 2 ) } </ div >
24- < Button onClick = { ( ) => signOut ( ) } > Sign Out</ Button >
25- </ div >
26- ) : (
27- < Link to = "/login" > login</ Link >
28- ) }
29- </ div >
30- ) ;
19+ return (
20+ < div className = "flex h-svh items-center justify-center" >
21+ { isAuthenticated ? (
22+ < div >
23+ < div > { JSON . stringify ( session , null , 2 ) } </ div >
24+ < Button onClick = { ( ) => signOut ( ) } > Sign Out</ Button >
25+ </ div >
26+ ) : (
27+ < Link to = "/login" > login</ Link >
28+ ) }
29+ </ div >
30+ ) ;
3131}
You can’t perform that action at this time.
0 commit comments