Commit e25acd4 1 parent 5e51baa commit e25acd4 Copy full SHA for e25acd4
File tree 4 files changed +14
-12
lines changed
4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import Explore from "./navbar/Explore";
13
13
import Menu from "./navbar/Menu" ;
14
14
import Help from "./navbar/Menu/Help" ;
15
15
import Settings from "./navbar/Menu/Settings" ;
16
- import { Overlay } from "components/Overlay" ;
17
16
import { PopupContainer } from "." ;
18
17
19
18
const Container = styled . div `
@@ -112,7 +111,6 @@ const DesktopHeader = () => {
112
111
</ Container >
113
112
{ ( isDappListOpen || isHelpOpen || isSettingsOpen ) && (
114
113
< PopupContainer >
115
- < Overlay />
116
114
{ isDappListOpen && < DappList { ...{ toggleIsDappListOpen, isDappListOpen } } /> }
117
115
{ isHelpOpen && < Help { ...{ toggleIsHelpOpen, isHelpOpen } } /> }
118
116
{ isSettingsOpen && < Settings { ...{ toggleIsSettingsOpen, isSettingsOpen } } /> }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import Court from "svgs/icons/kleros.svg";
11
11
import POH from "svgs/icons/poh-image.png" ;
12
12
import Vea from "svgs/icons/vea.svg" ;
13
13
import Product from "./Product" ;
14
+ import { Overlay } from "components/Overlay" ;
14
15
15
16
const Header = styled . h1 `
16
17
padding-top: 32px;
@@ -141,14 +142,17 @@ const DappList: React.FC<IDappList> = ({ toggleIsDappListOpen }) => {
141
142
useClickAway ( containerRef , ( ) => toggleIsDappListOpen ( ) ) ;
142
143
143
144
return (
144
- < Container ref = { containerRef } >
145
- < Header > Kleros Solutions</ Header >
146
- < ItemsDiv >
147
- { ITEMS . map ( ( item ) => {
148
- return < Product { ...item } key = { item . text } /> ;
149
- } ) }
150
- </ ItemsDiv >
151
- </ Container >
145
+ < >
146
+ < Overlay />
147
+ < Container ref = { containerRef } >
148
+ < Header > Kleros Solutions</ Header >
149
+ < ItemsDiv >
150
+ { ITEMS . map ( ( item ) => {
151
+ return < Product { ...item } key = { item . text } /> ;
152
+ } ) }
153
+ </ ItemsDiv >
154
+ </ Container >
155
+ </ >
152
156
) ;
153
157
} ;
154
158
export default DappList ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import Faq from "svgs/menu-icons/help.svg";
9
9
import Telegram from "svgs/socialmedia/telegram.svg" ;
10
10
import { IHelp } from ".." ;
11
11
import Debug from "../Debug" ;
12
+ import { Overlay } from "components/Overlay" ;
12
13
13
14
const Container = styled . div `
14
15
display: flex;
@@ -99,6 +100,7 @@ const Help: React.FC<IHelp> = ({ toggleIsHelpOpen }) => {
99
100
100
101
return (
101
102
< >
103
+ < Overlay />
102
104
< Container ref = { containerRef } >
103
105
{ ITEMS . map ( ( item , index ) => (
104
106
< ListItem href = { item . url } key = { item . text } target = "_blank" >
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import DappList from "./DappList";
8
8
import Explore from "./Explore" ;
9
9
import ConnectWallet from "components/ConnectWallet" ;
10
10
import LightButton from "components/LightButton" ;
11
- import { Overlay } from "components/Overlay" ;
12
11
import KlerosSolutionsIcon from "svgs/menu-icons/kleros-solutions.svg" ;
13
12
import Menu from "./Menu" ;
14
13
import Help from "./Menu/Help" ;
@@ -99,7 +98,6 @@ const NavBar: React.FC = () => {
99
98
</ Container >
100
99
{ ( isDappListOpen || isHelpOpen || isSettingsOpen ) && (
101
100
< PopupContainer >
102
- < Overlay />
103
101
{ isDappListOpen && < DappList { ...{ toggleIsDappListOpen } } /> }
104
102
{ isHelpOpen && < Help { ...{ toggleIsHelpOpen } } /> }
105
103
{ isSettingsOpen && < Settings { ...{ toggleIsSettingsOpen } } /> }
You can’t perform that action at this time.
0 commit comments