File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ interface AuthSession {
1818 isAuthReady : boolean ;
1919 email : string | null ;
2020 isAuthenticated : boolean ;
21+ displayName ?: string | null ;
2122}
2223
2324const AuthReadyContext = createContext < AuthSession > ( {
2425 isAuthReady : false ,
2526 email : null ,
2627 isAuthenticated : false ,
28+ displayName : null ,
2729} ) ;
2830
2931/**
@@ -58,6 +60,7 @@ export function AuthSessionProvider({
5860 isAuthReady : false ,
5961 email : null ,
6062 isAuthenticated : false ,
63+ displayName : null ,
6164 } ) ;
6265 const intervalRef = useRef < ReturnType < typeof setInterval > | null > ( null ) ;
6366
@@ -73,6 +76,7 @@ export function AuthSessionProvider({
7376 isAuthReady : true ,
7477 email : user . email ?? null ,
7578 isAuthenticated : ! user . isAnonymous ,
79+ displayName : user . displayName ?? null ,
7680 } ) ;
7781 setUserCookieSession ( ) . catch ( ( ) => {
7882 console . error ( 'Failed to establish session cookie' ) ;
@@ -90,7 +94,12 @@ export function AuthSessionProvider({
9094 5 * 60 * 1000 ,
9195 ) ; // 5 minutes
9296 } else {
93- setSession ( { isAuthReady : false , email : null , isAuthenticated : false } ) ;
97+ setSession ( {
98+ isAuthReady : false ,
99+ email : null ,
100+ isAuthenticated : false ,
101+ displayName : null ,
102+ } ) ;
94103 dispatch ( anonymousLogin ( ) ) ;
95104 }
96105 } ) ;
Original file line number Diff line number Diff line change @@ -16,10 +16,7 @@ export const animatedButtonStyling = (
1616) : SystemStyleObject < Theme > => ( {
1717 minWidth : 'fit-content' ,
1818 px : 0 ,
19- mx : {
20- md : 1 ,
21- lg : 2 ,
22- } ,
19+ mx : { xs : 1.5 , lg : 2 } ,
2320 fontFamily : fontFamily . secondary ,
2421 '&:hover, &.active' : {
2522 backgroundColor : 'transparent' ,
You can’t perform that action at this time.
0 commit comments