Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
7055d604
Unverified
Commit
7055d604
authored
Jan 31, 2022
by
Ian Lapham
Committed by
GitHub
Jan 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove survey (#3206)
parent
c641cec6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
index.tsx
src/components/Popups/index.tsx
+2
-8
No files found.
src/components/Popups/index.tsx
View file @
7055d604
...
...
@@ -4,11 +4,10 @@ import styled from 'styled-components/macro'
import
{
MEDIA_WIDTHS
}
from
'
theme
'
import
{
useActivePopups
}
from
'
../../state/application/hooks
'
import
{
use
ShowSurveyPopup
,
use
URLWarningVisible
}
from
'
../../state/user/hooks
'
import
{
useURLWarningVisible
}
from
'
../../state/user/hooks
'
import
{
AutoColumn
}
from
'
../Column
'
import
ClaimPopup
from
'
./ClaimPopup
'
import
PopupItem
from
'
./PopupItem
'
import
SurveyPopup
from
'
./SurveyPopup
'
const
MobilePopupWrapper
=
styled
.
div
<
{
height
:
string
|
number
}
>
`
position: relative;
...
...
@@ -60,9 +59,6 @@ export default function Popups() {
// get all popups
const
activePopups
=
useActivePopups
()
// show survey popup if user has not closed
const
[
showSurveyPopup
]
=
useShowSurveyPopup
()
const
urlWarningActive
=
useURLWarningVisible
()
// need extra padding if network is not L1 Ethereum
...
...
@@ -73,14 +69,12 @@ export default function Popups() {
<>
<
FixedPopupColumn
gap=
"20px"
extraPadding=
{
urlWarningActive
}
xlPadding=
{
isNotOnMainnet
}
>
<
ClaimPopup
/>
<
SurveyPopup
/>
{
activePopups
.
map
((
item
)
=>
(
<
PopupItem
key=
{
item
.
key
}
content=
{
item
.
content
}
popKey=
{
item
.
key
}
removeAfterMs=
{
item
.
removeAfterMs
}
/>
))
}
</
FixedPopupColumn
>
<
MobilePopupWrapper
height=
{
activePopups
?.
length
>
0
||
showSurveyPopup
?
'
fit-content
'
:
0
}
>
<
MobilePopupWrapper
height=
{
activePopups
?.
length
>
0
?
'
fit-content
'
:
0
}
>
<
MobilePopupInner
>
<
SurveyPopup
/>
{
activePopups
// reverse so new items up front
.
slice
(
0
)
.
reverse
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment