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
c6f6bd44
Unverified
Commit
c6f6bd44
authored
Dec 01, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove react-confetti (#5443)
parent
416212be
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
49 deletions
+0
-49
package.json
package.json
+0
-1
index.tsx
src/components/Confetti/index.tsx
+0
-32
AddressClaimModal.tsx
src/components/claim/AddressClaimModal.tsx
+0
-2
ClaimModal.tsx
src/components/claim/ClaimModal.tsx
+0
-2
yarn.lock
yarn.lock
+0
-12
No files found.
package.json
View file @
c6f6bd44
...
...
@@ -201,7 +201,6 @@
"
qs
"
:
"
^6.9.4
"
,
"
rc-slider
"
:
"
^10.0.1
"
,
"
react
"
:
"
^18.2.0
"
,
"
react-confetti
"
:
"
^6.0.0
"
,
"
react-dom
"
:
"
^18.2.0
"
,
"
react-feather
"
:
"
^2.0.8
"
,
"
react-ga4
"
:
"
^1.4.1
"
,
...
...
src/components/Confetti/index.tsx
deleted
100644 → 0
View file @
416212be
import
ReactConfetti
from
'
react-confetti
'
import
{
useWindowSize
}
from
'
../../hooks/useWindowSize
'
// eslint-disable-next-line react/prop-types
export
default
function
Confetti
({
start
,
variant
}:
{
start
:
boolean
;
variant
?:
string
})
{
const
{
width
,
height
}
=
useWindowSize
()
const
_variant
=
variant
?
variant
:
height
&&
width
&&
height
>
1.5
*
width
?
'
bottom
'
:
variant
return
start
&&
width
&&
height
?
(
<
ReactConfetti
style=
{
{
zIndex
:
1401
}
}
numberOfPieces=
{
400
}
recycle=
{
false
}
run=
{
true
}
width=
{
width
}
height=
{
height
}
confettiSource=
{
{
h
:
height
,
w
:
width
,
x
:
0
,
y
:
_variant
===
'
top
'
?
height
*
0.25
:
_variant
===
'
bottom
'
?
height
*
0.75
:
height
*
0.5
,
}
}
initialVelocityX=
{
15
}
initialVelocityY=
{
30
}
gravity=
{
0.45
}
tweenDuration=
{
100
}
wind=
{
0.05
}
/>
)
:
null
}
src/components/claim/AddressClaimModal.tsx
View file @
c6f6bd44
...
...
@@ -17,7 +17,6 @@ import { ExplorerDataType, getExplorerLink } from '../../utils/getExplorerLink'
import
AddressInputPanel
from
'
../AddressInputPanel
'
import
{
ButtonPrimary
}
from
'
../Button
'
import
{
AutoColumn
,
ColumnCenter
}
from
'
../Column
'
import
Confetti
from
'
../Confetti
'
import
{
Break
,
CardSection
,
DataCard
}
from
'
../earn/styled
'
import
{
CardBGImage
,
CardBGImageSmaller
,
CardNoise
}
from
'
../earn/styled
'
import
Modal
from
'
../Modal
'
...
...
@@ -97,7 +96,6 @@ export default function AddressClaimModal({ isOpen, onDismiss }: { isOpen: boole
return
(
<
Modal
isOpen=
{
isOpen
}
onDismiss=
{
wrappedOnDismiss
}
maxHeight=
{
90
}
>
<
Confetti
start=
{
Boolean
(
isOpen
&&
claimConfirmed
&&
attempting
)
}
/>
{
!
attempting
&&
(
<
ContentWrapper
gap=
"lg"
>
<
ModalUpper
>
...
...
src/components/claim/ClaimModal.tsx
View file @
c6f6bd44
...
...
@@ -17,7 +17,6 @@ import { CloseIcon, CustomLightSpinner, ExternalLink, ThemedText, UniTokenAnimat
import
{
ExplorerDataType
,
getExplorerLink
}
from
'
../../utils/getExplorerLink
'
import
{
ButtonPrimary
}
from
'
../Button
'
import
{
AutoColumn
,
ColumnCenter
}
from
'
../Column
'
import
Confetti
from
'
../Confetti
'
import
{
Break
,
CardBGImage
,
CardBGImageSmaller
,
CardNoise
,
CardSection
,
DataCard
}
from
'
../earn/styled
'
import
Modal
from
'
../Modal
'
import
{
RowBetween
}
from
'
../Row
'
...
...
@@ -92,7 +91,6 @@ export default function ClaimModal() {
return
(
<
Modal
isOpen=
{
isOpen
}
onDismiss=
{
toggleClaimModal
}
maxHeight=
{
90
}
>
<
Confetti
start=
{
Boolean
(
isOpen
&&
claimConfirmed
)
}
/>
{
!
attempting
&&
!
claimConfirmed
&&
(
<
ContentWrapper
gap=
"lg"
>
<
ModalUpper
>
...
...
yarn.lock
View file @
c6f6bd44
...
...
@@ -14815,13 +14815,6 @@ react-clientside-effect@^1.2.2:
dependencies:
"@babel/runtime" "^7.12.13"
react-confetti@^6.0.0:
version "6.0.1"
resolved "https://registry.npmjs.org/react-confetti/-/react-confetti-6.0.1.tgz"
integrity sha512-ZpOTBrqSNhWE4rRXCZ6E6U+wGd7iYHF5MGrqwikoiBpgBq9Akdu0DcLW+FdFnLjyZYC+VfAiV2KeFgYRMyMrkA==
dependencies:
tween-functions "^1.2.0"
react-dev-utils@^11.0.3:
version "11.0.4"
resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-11.0.4.tgz#a7ccb60257a1ca2e0efe7a83e38e6700d17aa37a"
...
...
@@ -17143,11 +17136,6 @@ tunnel-agent@^0.6.0:
dependencies:
safe-buffer "^5.0.1"
tween-functions@^1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/tween-functions/-/tween-functions-1.2.0.tgz"
integrity sha1-GuOlDnxguz3vd06scHrLynO7w/8=
tweetnacl@^0.14.3, tweetnacl@~0.14.0:
version "0.14.5"
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
...
...
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