11import React from "react" ;
22import styled , { css } from "styled-components" ;
33
4- import { Link } from "react-router-dom" ;
54import { useToggle } from "react-use" ;
65
7- import KlerosCourtUniversityLogo from "svgs/header/kleros-court-university.svg" ;
8- import KlerosCourtLogo from "svgs/header/kleros-court.svg" ;
96import KlerosSolutionsIcon from "svgs/menu-icons/kleros-solutions.svg" ;
107
118import { useLockOverlayScroll } from "hooks/useLockOverlayScroll" ;
129
13- import { isKlerosUniversity } from "src/consts" ;
14-
1510import { landscapeStyle } from "styles/landscapeStyle" ;
1611import { responsiveSize } from "styles/responsiveSize" ;
1712
1813import ConnectWallet from "components/ConnectWallet" ;
1914import LightButton from "components/LightButton" ;
2015import { Overlay } from "components/Overlay" ;
2116
17+ import Logo from "./Logo" ;
2218import DappList from "./navbar/DappList" ;
2319import Explore from "./navbar/Explore" ;
2420import Menu from "./navbar/Menu" ;
2521import Help from "./navbar/Menu/Help" ;
2622import Settings from "./navbar/Menu/Settings" ;
2723
28- import { PopupContainer } from "." ;
29-
3024const Container = styled . div `
3125 display: none;
3226 position: absolute;
@@ -73,10 +67,6 @@ const LightButtonContainer = styled.div`
7367 margin-right: ${ responsiveSize ( 12 , 16 ) } ;
7468` ;
7569
76- const StyledLink = styled ( Link ) `
77- min-height: 48px;
78- ` ;
79-
8070const StyledKlerosSolutionsIcon = styled ( KlerosSolutionsIcon ) `
8171 fill: ${ ( { theme } ) => theme . white } !important;
8272` ;
@@ -87,6 +77,15 @@ const ConnectWalletContainer = styled.div`
8777 }
8878` ;
8979
80+ const PopupContainer = styled . div `
81+ position: fixed;
82+ top: 0;
83+ left: 0;
84+ width: 100%;
85+ height: 100%;
86+ z-index: 30;
87+ ` ;
88+
9089const DesktopHeader = ( ) => {
9190 const [ isDappListOpen , toggleIsDappListOpen ] = useToggle ( false ) ;
9291 const [ isHelpOpen , toggleIsHelpOpen ] = useToggle ( false ) ;
@@ -106,7 +105,7 @@ const DesktopHeader = () => {
106105 Icon = { StyledKlerosSolutionsIcon }
107106 />
108107 </ LightButtonContainer >
109- < StyledLink to = { "/" } > { isKlerosUniversity ( ) ? < KlerosCourtUniversityLogo /> : < KlerosCourtLogo /> } </ StyledLink >
108+ < Logo / >
110109 </ LeftSide >
111110
112111 < MiddleSide >
0 commit comments