File tree 4 files changed +8
-11
lines changed
4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,7 @@ const Template: React.FC<ITemplate> = ({
159
159
} ) ;
160
160
161
161
return (
162
- < >
163
- < Overlay />
162
+ < Overlay >
164
163
< Container ref = { containerRef } isVisible = { isVisible } >
165
164
< LeftContainer >
166
165
< LeftContainerHeader >
@@ -187,7 +186,7 @@ const Template: React.FC<ITemplate> = ({
187
186
</ LeftContainer >
188
187
< RightContainer > { RightContent } </ RightContainer >
189
188
</ Container >
190
- </ >
189
+ </ Overlay >
191
190
) ;
192
191
} ;
193
192
Original file line number Diff line number Diff line change @@ -237,8 +237,7 @@ const Popup: React.FC<PopupProps & IPopup> = ({
237
237
}
238
238
239
239
return (
240
- < >
241
- < Overlay />
240
+ < Overlay >
242
241
< Container ref = { containerRef } >
243
242
{ popupType === PopupType . SWAP_SUCCESS && (
244
243
< SVGContainer >
@@ -270,7 +269,7 @@ const Popup: React.FC<PopupProps & IPopup> = ({
270
269
/>
271
270
) }
272
271
</ Container >
273
- </ >
272
+ </ Overlay >
274
273
) ;
275
274
} ;
276
275
export default Popup ;
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { responsiveSize } from "styles/responsiveSize";
13
13
14
14
import ConnectWallet from "components/ConnectWallet" ;
15
15
import LightButton from "components/LightButton" ;
16
- import { Overlay } from "components/Overlay" ;
17
16
import Onboarding from "components/Popup/MiniGuides/Onboarding" ;
18
17
19
18
import Logo from "./Logo" ;
@@ -95,7 +94,8 @@ const PopupContainer = styled.div`
95
94
left: 0;
96
95
width: 100%;
97
96
height: 100%;
98
- z-index: 30;
97
+ z-index: 1;
98
+ background-color: ${ ( { theme } ) => theme . blackLowOpacity } ;
99
99
` ;
100
100
101
101
const DesktopHeader : React . FC = ( ) => {
@@ -149,7 +149,6 @@ const DesktopHeader: React.FC = () => {
149
149
</ Container >
150
150
{ ( isDappListOpen || isHelpOpen || isSettingsOpen ) && (
151
151
< PopupContainer >
152
- < Overlay />
153
152
{ isDappListOpen && < DappList { ...{ toggleIsDappListOpen, isDappListOpen } } /> }
154
153
{ isHelpOpen && < Help { ...{ toggleIsHelpOpen, isHelpOpen } } /> }
155
154
{ isSettingsOpen && < Settings { ...{ toggleIsSettingsOpen, isSettingsOpen, initialTab } } /> }
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ const PopupContainer = styled.div`
77
77
left: 0;
78
78
width: 100%;
79
79
height: 100%;
80
- z-index: 30;
80
+ z-index: 1;
81
+ background-color: ${ ( { theme } ) => theme . blackLowOpacity } ;
81
82
` ;
82
83
83
84
export interface ISettings {
@@ -131,7 +132,6 @@ const NavBar: React.FC = () => {
131
132
</ Wrapper >
132
133
{ ( isDappListOpen || isHelpOpen || isSettingsOpen ) && (
133
134
< PopupContainer >
134
- < Overlay />
135
135
{ isDappListOpen && < DappList { ...{ toggleIsDappListOpen } } /> }
136
136
{ isHelpOpen && < Help { ...{ toggleIsHelpOpen } } /> }
137
137
{ isSettingsOpen && < Settings { ...{ toggleIsSettingsOpen } } /> }
You can’t perform that action at this time.
0 commit comments