@@ -6,9 +6,9 @@ import { usePathname, useRouter } from 'next/navigation';
6
6
7
7
import { useContext , useEffect , useState } from 'react' ;
8
8
import { FiMenu } from 'react-icons/fi' ;
9
+ import { ImSpinner2 } from 'react-icons/im' ;
9
10
import { IoMdArrowBack , IoMdClose } from 'react-icons/io' ;
10
11
import { MdHome } from 'react-icons/md' ;
11
- import { ImSpinner2 } from 'react-icons/im' ;
12
12
13
13
import Sidebar from '../sidebar/sidebar' ;
14
14
import styles from './Navbar.module.css' ;
@@ -49,24 +49,24 @@ function Navbar() {
49
49
return (
50
50
< >
51
51
< div className = "w-full h-[76.19px] z-500 px-[16px] py-[5px] bg-primary fixed top-0 left-0 right-0" >
52
- < div className = "text-center text-secondary text-[1.3rem] whitespace-nowrap" >
53
- { /* Display alert message with spinner if present, otherwise display 'Map of Pi' */ }
54
- { alertMessage ? (
55
- < div className = "alert-message flex items-center justify-center text-[1rem]" > { /* Adjust font size */ }
56
- < ImSpinner2 className = "animate-spin mr-2 ml-1" /> { /* Spinner Icon */ }
57
- { alertMessage }
58
- </ div >
59
- ) : (
60
- isSigningInUser || reload ? (
61
- < div className = "flex items-center justify-center" >
62
- < ImSpinner2 className = "animate-spin mr-2 ml-1" /> { /* Spinner Icon */ }
63
- { t ( 'SHARED.LOADING_SCREEN_MESSAGE' ) }
52
+ < div className = "text-center text-secondary text-[1.3rem] whitespace-nowrap" >
53
+ { /* Display alert message with spinner if present, otherwise display 'Map of Pi' */ }
54
+ { alertMessage ? (
55
+ < div className = "alert-message flex items-center justify-center text-[1rem]" > { /* Adjust font size */ }
56
+ < ImSpinner2 className = "animate-spin mr-2 ml-1" /> { /* Spinner Icon */ }
57
+ { alertMessage }
58
+ </ div >
59
+ ) : (
60
+ isSigningInUser || reload ? (
61
+ < div className = "flex items-center justify-center" >
62
+ < ImSpinner2 className = "animate-spin mr-2 ml-1" /> { /* Spinner Icon */ }
63
+ { t ( 'SHARED.LOADING_SCREEN_MESSAGE' ) }
64
+ </ div >
65
+ ) : (
66
+ "Map of Pi"
67
+ )
68
+ ) }
64
69
</ div >
65
- ) : (
66
- "Map of Pi"
67
- )
68
- ) }
69
- </ div >
70
70
< div className = "flex justify-between" >
71
71
< div className = { `${ styles . nav_item } ${ isHomePage && 'disabled' } ` } >
72
72
< Link href = "/" onClick = { handleBackBtn } >
0 commit comments