File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ const TopNav = ({
72
72
setOpenMore,
73
73
openMore,
74
74
loggedIn,
75
- profileHandle
75
+ profileHandle,
76
+ logoLink
76
77
} ) => {
77
78
useEffect ( ( ) => {
78
79
const orientationchange = ( ) => {
@@ -183,7 +184,11 @@ const TopNav = ({
183
184
184
185
const handleClickLogo = ( e ) => {
185
186
e . preventDefault ( )
186
- window . location = loggedIn ? config . URL . HOME : config . URL . BASE
187
+ if ( logoLink ) {
188
+ window . location = logoLink
189
+ } else {
190
+ window . location = loggedIn ? config . URL . HOME : config . URL . BASE
191
+ }
187
192
}
188
193
189
194
const expandMenu = ( menuId , menu2Id ) => {
@@ -594,7 +599,9 @@ TopNav.propTypes = {
594
599
595
600
loggedIn : PropTypes . bool ,
596
601
597
- profileHandle : PropTypes . string
602
+ profileHandle : PropTypes . string ,
603
+
604
+ logoLink : PropTypes . string
598
605
}
599
606
600
607
export default TopNav
You can’t perform that action at this time.
0 commit comments