@@ -5,14 +5,15 @@ import Link from 'next/link';
5
5
import { usePathname , useRouter } from 'next/navigation' ;
6
6
7
7
import { useContext , useEffect , useState } from 'react' ;
8
- import { FiMenu } from 'react-icons/fi' ;
8
+ import { FiHelpCircle , FiMenu } from 'react-icons/fi' ;
9
9
import { IoMdArrowBack , IoMdClose } from 'react-icons/io' ;
10
10
import { MdHome } from 'react-icons/md' ;
11
11
12
12
import Sidebar from '../sidebar/sidebar' ;
13
13
import styles from './Navbar.module.css' ;
14
14
import { AppContext } from '../../../../context/AppContextProvider' ;
15
15
import logger from '../../../../logger.config.mjs' ;
16
+ import Image from 'next/image'
16
17
17
18
function Navbar ( ) {
18
19
const router = useRouter ( ) ;
@@ -45,6 +46,12 @@ function Navbar() {
45
46
setSidebarToggle ( ! sidebarToggle ) ;
46
47
} ;
47
48
49
+
50
+ const handleClick = ( e : any ) => {
51
+ e . preventDefault ( ) ;
52
+ window . open ( "https://mapofpi.zapier.app" , "_blank" , "noopener, noreferrer" ) ;
53
+ } ;
54
+
48
55
return (
49
56
< >
50
57
< div
@@ -60,33 +67,48 @@ function Navbar() {
60
67
</ Link >
61
68
</ div >
62
69
63
- < div className = { `${ styles . nav_item } ${ isHomePage && 'disabled' } ` } >
64
- < Link href = "/" >
65
- < MdHome size = { 24 } className = { `${ isHomePage ? 'text-tertiary' : 'text-secondary' } ` } />
66
- </ Link >
67
- </ div >
68
- < div className = { `${ styles . nav_item } ` } >
69
- < Link
70
- href = ""
71
- onClick = { ( e ) => {
72
- if ( isSigningInUser ) {
73
- e . preventDefault ( ) ;
74
- } else {
75
- handleMenu ( ) ;
76
- }
77
- } }
78
- >
79
- { sidebarToggle && ! isSigningInUser ? (
80
- < IoMdClose size = { 24 } className = "text-secondary" />
81
- ) : (
82
- < FiMenu
83
- size = { 24 }
84
- className = { `${
85
- isSigningInUser ? 'text-tertiary cursor-not-allowed' : 'text-secondary'
86
- } `}
70
+ < div className = { `${ styles . nav_item } ${ isHomePage && 'disabled' } ` } >
71
+ < Link href = "/" >
72
+ < MdHome size = { 24 } className = { `${ isHomePage ? 'text-tertiary' : 'text-secondary' } ` } />
73
+ </ Link >
74
+ </ div >
75
+ < div className = { `${ styles . nav_item } disabled` } >
76
+ < Link href = "/" >
77
+ < Image
78
+ src = "/images/logo.svg"
79
+ alt = "Home Logo"
80
+ width = { 34 }
81
+ height = { 34 }
87
82
/>
88
- ) }
89
- </ Link >
83
+ </ Link >
84
+ </ div >
85
+ < div className = { `${ styles . nav_item } ` } >
86
+ < Link href = "/" onClick = { handleClick } >
87
+ < FiHelpCircle size = { 24 } className = { 'text-secondary' } />
88
+ </ Link >
89
+ </ div >
90
+ < div className = { `${ styles . nav_item } ` } >
91
+ < Link
92
+ href = ""
93
+ onClick = { ( e ) => {
94
+ if ( isSigningInUser ) {
95
+ e . preventDefault ( ) ;
96
+ } else {
97
+ handleMenu ( ) ;
98
+ }
99
+ } }
100
+ >
101
+ { sidebarToggle && ! isSigningInUser ? (
102
+ < IoMdClose size = { 24 } className = "text-secondary" />
103
+ ) : (
104
+ < FiMenu
105
+ size = { 24 }
106
+ className = { `${
107
+ isSigningInUser ? 'text-tertiary cursor-not-allowed' : 'text-secondary'
108
+ } `}
109
+ />
110
+ ) }
111
+ </ Link >
90
112
</ div >
91
113
</ div >
92
114
</ div >
0 commit comments