Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement overview section #455

Open
wants to merge 309 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
309 commits
Select commit Hold shift + click to select a range
0985bdf
Fix popover
kuba80-02 Feb 4, 2025
4b5fd7b
Add override colors config object
kuba80-02 Feb 4, 2025
40bb1b4
Update
kuba80-02 Feb 4, 2025
dc0bc41
Hide useless scroll in wallet section
kuba80-02 Feb 4, 2025
edeb091
Update
kuba80-02 Feb 4, 2025
216bc3e
Fix loading
kuba80-02 Feb 4, 2025
df256d9
update
kuba80-02 Feb 4, 2025
f4527e6
update
kuba80-02 Feb 4, 2025
e75fc3c
add package lock back
zielvna Feb 7, 2025
c774626
fix package lock
zielvna Feb 7, 2025
48abed0
add actions to buttons
zielvna Feb 7, 2025
76a5eea
disable claim all fees button if unclaimed fees are zero
zielvna Feb 7, 2025
7a645b6
refactor overview
zielvna Feb 7, 2025
7aec7d4
remove overview reducer
zielvna Feb 7, 2025
d8d9b34
add lock liquidity modal to portfolio page
zielvna Feb 7, 2025
012eec4
fix display issue with overview when multiple positions with same tok…
zielvna Feb 7, 2025
09cd505
Merge branch 'master' of https://github.com/invariant-labs/webapp-ecl…
kuba80-02 Feb 9, 2025
1688eef
Merge branch 'overview-section' of https://github.com/invariant-labs/…
kuba80-02 Feb 9, 2025
489901b
Mobile Redesign Wallet, Overview
kuba80-02 Feb 9, 2025
528953a
Update mobile version
kuba80-02 Feb 9, 2025
d791709
Fix
kuba80-02 Feb 9, 2025
037232f
Aligment Legends to label
kuba80-02 Feb 9, 2025
f042d68
Fixes
kuba80-02 Feb 10, 2025
cf1475a
static height
kuba80-02 Feb 10, 2025
ce4ddef
Fix
kuba80-02 Feb 10, 2025
e061d80
Update
kuba80-02 Feb 10, 2025
daf6ab9
Update
kuba80-02 Feb 10, 2025
bcfe400
Fix
kuba80-02 Feb 10, 2025
0f1bdbb
Update
kuba80-02 Feb 10, 2025
32c2a93
Fix legend
kuba80-02 Feb 11, 2025
ea88a2a
Fix
kuba80-02 Feb 11, 2025
a00f204
Fixes
kuba80-02 Feb 11, 2025
8076958
Fix
kuba80-02 Feb 11, 2025
7ff63e5
Refactor
kuba80-02 Feb 11, 2025
8d0986f
Update UI
kuba80-02 Feb 11, 2025
b2d39d8
Update
kuba80-02 Feb 11, 2025
2652aba
Fix
kuba80-02 Feb 11, 2025
331ca41
Fix
kuba80-02 Feb 11, 2025
dd3094e
Fix
kuba80-02 Feb 12, 2025
1344deb
Fix
kuba80-02 Feb 12, 2025
3d57a7a
Fix
kuba80-02 Feb 12, 2025
55425d1
Fix
kuba80-02 Feb 12, 2025
8c34b1a
Fix
kuba80-02 Feb 12, 2025
2bd8c81
Fix
kuba80-02 Feb 12, 2025
6369564
Fix
kuba80-02 Feb 12, 2025
4841f85
Merge branch 'dev' of https://github.com/invariant-labs/webapp-eclips…
kuba80-02 Feb 12, 2025
a816866
Fix
kuba80-02 Feb 12, 2025
59ed601
tooltip update
kuba80-02 Feb 12, 2025
36e282a
Fixes
kuba80-02 Feb 12, 2025
bc0d4d4
Skeleton
kuba80-02 Feb 12, 2025
878cbd2
Fix
kuba80-02 Feb 12, 2025
a33303a
Fix
kuba80-02 Feb 12, 2025
7e087fb
update
kuba80-02 Feb 12, 2025
85a42de
Fix
kuba80-02 Feb 12, 2025
4befd1f
remove comment
kuba80-02 Feb 13, 2025
5d8df93
Fixes
kuba80-02 Feb 13, 2025
89dcc9a
Update
kuba80-02 Feb 13, 2025
7164ce4
Update
kuba80-02 Feb 13, 2025
50aeff7
Fix
kuba80-02 Feb 13, 2025
45334ed
Update
kuba80-02 Feb 13, 2025
04b7253
Update
kuba80-02 Feb 13, 2025
ddb4cbc
Refactor
kuba80-02 Feb 13, 2025
5cca84c
Fix skeletons
kuba80-02 Feb 13, 2025
8c3b613
Fix
kuba80-02 Feb 13, 2025
38a62ba
Fix
kuba80-02 Feb 13, 2025
d423279
Update skeleton
kuba80-02 Feb 13, 2025
78014ce
Fix saga and bump sdk
kuba80-02 Feb 13, 2025
3789b72
Update
kuba80-02 Feb 13, 2025
ed13f59
Update
kuba80-02 Feb 13, 2025
a841e44
Fix
kuba80-02 Feb 13, 2025
0d46c41
Back
kuba80-02 Feb 13, 2025
2ef8917
Update
kuba80-02 Feb 13, 2025
9a608ab
Update
kuba80-02 Feb 13, 2025
ef933be
Merge branch 'dev' of github.com:invariant-labs/webapp-eclipse into o…
wojciech-cichocki Feb 14, 2025
6af5e49
Merge branch 'dev' of https://github.com/invariant-labs/webapp-eclips…
kuba80-02 Feb 14, 2025
e3d4b2b
Merge branch 'overview-section' of https://github.com/invariant-labs/…
kuba80-02 Feb 14, 2025
d63e50a
Fix
kuba80-02 Feb 14, 2025
6a853de
Fix
kuba80-02 Feb 14, 2025
3bc6928
Update
kuba80-02 Feb 14, 2025
38373cb
Avg color
kuba80-02 Feb 14, 2025
a9a67fe
Scrolls
kuba80-02 Feb 14, 2025
c9268ec
Update
kuba80-02 Feb 14, 2025
bcba698
Update
kuba80-02 Feb 14, 2025
ac6dfdd
Update
kuba80-02 Feb 14, 2025
4c7847a
Update
kuba80-02 Feb 14, 2025
68ad729
Update
kuba80-02 Feb 14, 2025
c880549
Fix
kuba80-02 Feb 14, 2025
90f77ea
Update
kuba80-02 Feb 14, 2025
ddb4720
Fix
kuba80-02 Feb 14, 2025
662c144
Refactor
kuba80-02 Feb 14, 2025
0e4005d
Fix tooltip
kuba80-02 Feb 14, 2025
b0cd0f6
Fix
kuba80-02 Feb 14, 2025
4f9beda
bump
kuba80-02 Feb 14, 2025
89030ef
bump
kuba80-02 Feb 14, 2025
3a28141
Update
kuba80-02 Feb 17, 2025
381ea43
Update
kuba80-02 Feb 17, 2025
13306df
Fix
kuba80-02 Feb 17, 2025
11edc8d
Fix
kuba80-02 Feb 17, 2025
8a9bc04
Fix
kuba80-02 Feb 17, 2025
37ec74d
Update
kuba80-02 Feb 17, 2025
3287514
Update
kuba80-02 Feb 17, 2025
d165aec
optimize rpc calls
kuba80-02 Feb 17, 2025
1d239fa
Update
kuba80-02 Feb 17, 2025
6fd2ed8
Update
kuba80-02 Feb 17, 2025
f105252
Update
kuba80-02 Feb 17, 2025
05a298e
Optimize
kuba80-02 Feb 17, 2025
4287566
Update
kuba80-02 Feb 17, 2025
27751e9
Update
kuba80-02 Feb 17, 2025
58cdee5
bump
kuba80-02 Feb 17, 2025
c092e25
update
kuba80-02 Feb 17, 2025
0f5065a
Update
kuba80-02 Feb 17, 2025
78cb1ed
Update
kuba80-02 Feb 17, 2025
dff269c
Update
kuba80-02 Feb 17, 2025
796a227
Hotfix
kuba80-02 Feb 17, 2025
cfe3ce3
update
kuba80-02 Feb 17, 2025
69494e1
Update
kuba80-02 Feb 17, 2025
c19b0bc
update
kuba80-02 Feb 17, 2025
2e1b137
Fix
kuba80-02 Feb 17, 2025
ccfc616
Fix
kuba80-02 Feb 18, 2025
2e2dc09
Update
kuba80-02 Feb 18, 2025
9419552
Fix
kuba80-02 Feb 18, 2025
a6e1410
Update
kuba80-02 Feb 18, 2025
d9c2d98
Update
kuba80-02 Feb 18, 2025
ea88504
Update
kuba80-02 Feb 18, 2025
e28d081
Update
kuba80-02 Feb 18, 2025
003059c
Refactor
kuba80-02 Feb 18, 2025
dc5ca60
Update
kuba80-02 Feb 18, 2025
cb1fb98
Update
kuba80-02 Feb 18, 2025
d394cb0
Update
kuba80-02 Feb 18, 2025
9f67161
Update
kuba80-02 Feb 18, 2025
d0e615e
Update
kuba80-02 Feb 18, 2025
45612b8
Update
kuba80-02 Feb 18, 2025
589a911
Update
kuba80-02 Feb 18, 2025
edc332b
Merge branch 'dev' of https://github.com/invariant-labs/webapp-eclips…
kuba80-02 Feb 18, 2025
4780de4
Update
kuba80-02 Feb 18, 2025
4540cfb
Update
kuba80-02 Feb 18, 2025
f5412ea
update
kuba80-02 Feb 18, 2025
1c7179e
Update
kuba80-02 Feb 18, 2025
d149f2e
Update
kuba80-02 Feb 18, 2025
3b6e517
Disable
kuba80-02 Feb 18, 2025
7adfdbd
update
kuba80-02 Feb 18, 2025
7ed08e9
Fix
kuba80-02 Feb 18, 2025
d0a155f
Update fromat
kuba80-02 Feb 18, 2025
9cae54c
Update
kuba80-02 Feb 18, 2025
71dff58
Update
kuba80-02 Feb 18, 2025
6f5c6ac
Merge branch 'dev' of https://github.com/invariant-labs/webapp-eclips…
kuba80-02 Feb 19, 2025
595339a
Fix
kuba80-02 Feb 19, 2025
162728d
Fix
kuba80-02 Feb 19, 2025
c4991e7
update
kuba80-02 Feb 19, 2025
42db585
Update
kuba80-02 Feb 20, 2025
9594322
Merge branch 'dev' of https://github.com/invariant-labs/webapp-eclips…
kuba80-02 Feb 20, 2025
f7e042e
Update
kuba80-02 Feb 20, 2025
fad98cd
Update
kuba80-02 Feb 20, 2025
c5ec5c2
Update
kuba80-02 Feb 20, 2025
21362d0
Update
kuba80-02 Feb 20, 2025
45e3e9e
Update
kuba80-02 Feb 20, 2025
3c2901a
Update
kuba80-02 Feb 20, 2025
0afa29a
Fix
kuba80-02 Feb 20, 2025
cb0b6b7
Update
kuba80-02 Feb 20, 2025
898dc9e
Update
kuba80-02 Feb 20, 2025
4513429
Update
kuba80-02 Feb 20, 2025
315266a
overview section footer
matepal00 Feb 20, 2025
b6d42ca
requested changes
matepal00 Feb 20, 2025
1c70c27
bump
matepal00 Feb 20, 2025
2cf4d56
bump
matepal00 Feb 20, 2025
9f00709
Merge pull request #555 from invariant-labs/overview-section-footer
matepal00 Feb 20, 2025
21705dd
Merge branch 'dev' of https://github.com/invariant-labs/webapp-eclips…
kuba80-02 Feb 20, 2025
ef2f7bf
Merge branch 'overview-section' of https://github.com/invariant-labs/…
kuba80-02 Feb 20, 2025
343a72d
Update
kuba80-02 Feb 20, 2025
0f7a677
Update
kuba80-02 Feb 21, 2025
406f556
Update
kuba80-02 Feb 21, 2025
ec9e522
Update
kuba80-02 Feb 21, 2025
b6618da
Fix
kuba80-02 Feb 21, 2025
971ec2a
Update
kuba80-02 Feb 21, 2025
5e2f576
Update
kuba80-02 Feb 21, 2025
39431ed
overview table adjustment
matepal00 Feb 21, 2025
12bf91d
Merge pull request #558 from invariant-labs/overview-table-adjustment
matepal00 Feb 21, 2025
8d7e6a1
Update
kuba80-02 Feb 21, 2025
9717675
Update
kuba80-02 Feb 22, 2025
31c6a33
Update
kuba80-02 Feb 22, 2025
a2d7d81
Update
kuba80-02 Feb 22, 2025
75f9246
Fix
kuba80-02 Feb 22, 2025
0695f42
Update
kuba80-02 Feb 22, 2025
acc11c2
Update
kuba80-02 Feb 22, 2025
7c4fc2c
Update
kuba80-02 Feb 22, 2025
5311254
Update
kuba80-02 Feb 22, 2025
fbcf7cd
Update
kuba80-02 Feb 22, 2025
59800e0
Fix
kuba80-02 Feb 22, 2025
d0052e4
Update skeletons
kuba80-02 Feb 23, 2025
d4c65bd
Update
kuba80-02 Feb 23, 2025
0cd704b
Cleanup
kuba80-02 Feb 24, 2025
dc80763
Fix
kuba80-02 Feb 24, 2025
aa2cb19
Fix
kuba80-02 Feb 24, 2025
4f41cdc
Update
kuba80-02 Feb 24, 2025
d6fc753
Update
kuba80-02 Feb 24, 2025
66807dd
Fix
kuba80-02 Feb 24, 2025
81fb388
Add warn icon
kuba80-02 Feb 24, 2025
d5c1d66
Update src/components/EmptyPlaceholder/EmptyPlaceholder.tsx
kuba80-02 Feb 24, 2025
3c10341
Fixes
kuba80-02 Feb 24, 2025
6d3c8e0
Merge branch 'overview-section' of https://github.com/invariant-labs/…
kuba80-02 Feb 24, 2025
bf1e307
Fix
kuba80-02 Feb 24, 2025
3cd3bb4
Fixes & Updates
kuba80-02 Feb 24, 2025
d810221
Update
kuba80-02 Feb 24, 2025
ed9e537
Fix
kuba80-02 Feb 24, 2025
3acbc51
Update
kuba80-02 Feb 24, 2025
bbd4d3a
Test
kuba80-02 Feb 24, 2025
f1bb4c3
test
kuba80-02 Feb 24, 2025
7318598
back
kuba80-02 Feb 24, 2025
e0aed34
Update
kuba80-02 Feb 24, 2025
d148c4e
Update
kuba80-02 Feb 24, 2025
04057d8
Update
kuba80-02 Feb 24, 2025
f7518cf
Update
kuba80-02 Feb 24, 2025
3d977e5
Remove
kuba80-02 Feb 24, 2025
3251454
Update
kuba80-02 Feb 24, 2025
6bba6cf
Update
kuba80-02 Feb 24, 2025
c815a24
Typo
kuba80-02 Feb 24, 2025
2326eaf
Update
kuba80-02 Feb 24, 2025
d6dbeae
Fix
kuba80-02 Feb 24, 2025
a5601f3
Fix
kuba80-02 Feb 24, 2025
21e20e7
Update
kuba80-02 Feb 24, 2025
4a10be6
Update
kuba80-02 Feb 24, 2025
a5393dd
Update
kuba80-02 Feb 24, 2025
8edd794
Fix
kuba80-02 Feb 24, 2025
182b548
Update
kuba80-02 Feb 24, 2025
321072c
Update
kuba80-02 Feb 24, 2025
f5dc2c1
Fix
kuba80-02 Feb 25, 2025
2a6f150
Update
kuba80-02 Feb 25, 2025
4eb1943
Update
kuba80-02 Feb 25, 2025
85e68f8
Update
kuba80-02 Feb 25, 2025
5eb27b1
Update
kuba80-02 Feb 25, 2025
67de618
update
kuba80-02 Feb 25, 2025
612ca6b
overview section loading state
matepal00 Feb 25, 2025
84b9950
Merge pull request #569 from invariant-labs/overview-loading-state-fix
matepal00 Feb 25, 2025
e3ef493
Update
kuba80-02 Feb 25, 2025
056b3cc
Update
kuba80-02 Feb 25, 2025
ba0acbe
bump
matepal00 Feb 25, 2025
6d70619
Update
kuba80-02 Feb 25, 2025
ccae3a0
Single claim for one position
Sniezka1927 Feb 25, 2025
ef09141
Update
kuba80-02 Feb 25, 2025
435a236
Update
kuba80-02 Feb 25, 2025
92af80a
Merge branch 'overview-section' of github.com:invariant-labs/webapp-e…
Sniezka1927 Feb 25, 2025
6d00175
Update
kuba80-02 Feb 25, 2025
782e9a4
Revert callbacks
kuba80-02 Feb 25, 2025
b5afd43
bump
kuba80-02 Feb 25, 2025
be634df
Merge branch 'dev' of https://github.com/invariant-labs/webapp-eclips…
kuba80-02 Feb 25, 2025
442c813
Bump
kuba80-02 Feb 25, 2025
fba53f0
Revert "Merge branch 'dev' of https://github.com/invariant-labs/webap…
kuba80-02 Feb 25, 2025
6d03788
Merge pull request #570 from invariant-labs/single-claim-for-one-pos
kuba80-02 Feb 25, 2025
3329312
Update
kuba80-02 Feb 25, 2025
9699617
Merge branch 'overview-section' of https://github.com/invariant-labs/…
kuba80-02 Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7,547 changes: 4,954 additions & 2,593 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"@emotion/styled": "^11.11.5",
"@invariant-labs/locker-eclipse-sdk": "^0.0.20",
"@invariant-labs/points-sdk": "^0.0.3",
"@invariant-labs/sdk-eclipse": "^0.0.63",
"@irys/web-upload": "^0.0.14",
"@irys/web-upload-solana": "^0.1.7",
"@invariant-labs/sdk-eclipse": "^0.0.85",
"@irys/web-upload": "0.0.14",
"@irys/web-upload-solana": "0.1.7",
"@metaplex-foundation/js": "^0.20.1",
"@metaplex-foundation/mpl-token-metadata": "^2.13.0",
"@mui/icons-material": "^5.15.15",
"@mui/material": "^5.15.15",
"@mui/x-charts": "^7.22.3",
"@nightlylabs/wallet-selector-solana": "^0.3.14",
"@nightlylabs/wallet-selector-solana": "^0.3.13",
"@nivo/bar": "^0.87.0",
"@nivo/line": "^0.86.0",
"@project-serum/sol-wallet-adapter": "^0.2.5",
Expand Down
17 changes: 14 additions & 3 deletions src/components/EmptyPlaceholder/EmptyPlaceholder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,35 @@ export interface IEmptyPlaceholder {
className?: string
style?: React.CSSProperties
withButton?: boolean
mainTitle?: string
roundedCorners?: boolean
blurWidth?: string
buttonName?: string
height?: string
newVersion?: boolean
}

export const EmptyPlaceholder: React.FC<IEmptyPlaceholder> = ({
desc,
onAction,
withButton = true,
buttonName
buttonName,
mainTitle,
height,
newVersion = false,
roundedCorners = false
}) => {
const { classes } = useStyles()
const { classes } = useStyles({ newVersion, roundedCorners, height })

return (
<>
<Grid className={classNames(classes.blur, 'blurLayer')} />
<Grid className={classNames(classes.container, 'blurLayer')}>
<Grid className={classNames(classes.root, 'blurInfo')}>
<img className={classes.img} src={icons.empty} alt='Not connected' />
<Typography className={classes.desc}>It's empty here...</Typography>
<Typography className={classes.desc}>
{mainTitle ? mainTitle : `It's empty here...`}
</Typography>
{desc?.length && <Typography className={classes.desc}>{desc}</Typography>}
{withButton && (
<Button className={classes.button} onClick={onAction} variant='contained'>
Expand Down
116 changes: 63 additions & 53 deletions src/components/EmptyPlaceholder/style.ts
Original file line number Diff line number Diff line change
@@ -1,59 +1,69 @@
import { colors, typography } from '@static/theme'
import { makeStyles } from 'tss-react/mui'

export const useStyles = makeStyles()(() => ({
container: {
width: '100%',
height: '370px',
zIndex: 14
},
root: {
zIndex: 10,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
paddingBottom: 25,
width: '100%',
height: '100%',
p: {
textAlign: 'center'
}
},
img: {
paddingBottom: 25
},
blur: {
width: '100%',
height: '370px',
backgroundColor: 'rgba(12, 11, 13, 0.8)',
position: 'absolute',
zIndex: 13,
borderRadius: 10
},
desc: {
...typography.body2,
fontWeight: 500,
lineHeight: '20px',
color: colors.invariant.lightHover
},
button: {
height: 40,
width: 200,
marginTop: 20,
color: colors.invariant.componentBcg,
...typography.body1,
textTransform: 'none',
borderRadius: 14,
background: colors.invariant.pinkLinearGradientOpacity,
interface StyleProps {
newVersion?: boolean
height?: string
roundedCorners?: boolean
}

export const useStyles = makeStyles<StyleProps>()(
(_theme, { newVersion, roundedCorners, height }) => ({
container: {
width: '100%',
height: height ? height : '370px',
zIndex: 14
},
root: {
zIndex: 10,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
paddingBottom: 25,
width: '100%',
height: '100%',
p: {
textAlign: 'center'
}
},
img: {
paddingBottom: 25
},
blur: {
width: '100%',
height: height ? height : '370px',
position: 'absolute',
zIndex: 13,
borderRadius: newVersion || !roundedCorners ? 0 : 10,
background: newVersion
? 'linear-gradient(360deg, rgba(32, 41, 70, 0.8) 0%, rgba(17, 25, 49, 0.8) 100%), linear-gradient(180deg, #010514 0%, rgba(1, 5, 20, 0) 100%)'
: 'rgba(12, 11, 13, 0.8)'
},
desc: {
...typography.body2,
fontWeight: 500,
lineHeight: '20px',
color: colors.invariant.lightHover
},
button: {
height: 40,
width: 200,
marginTop: 20,
color: colors.invariant.componentBcg,
...typography.body1,
textTransform: 'none',
borderRadius: 14,
background: colors.invariant.pinkLinearGradientOpacity,

'&:hover': {
background: colors.invariant.pinkLinearGradient,
boxShadow: '0px 0px 16px rgba(239, 132, 245, 0.35)',
'@media (hover: none)': {
background: colors.invariant.pinkLinearGradientOpacity,
boxShadow: 'none'
'&:hover': {
background: colors.invariant.pinkLinearGradient,
boxShadow: '0px 0px 16px rgba(239, 132, 245, 0.35)',
'@media (hover: none)': {
background: colors.invariant.pinkLinearGradientOpacity,
boxShadow: 'none'
}
}
}
}
}))
})
)
8 changes: 3 additions & 5 deletions src/components/FooterNavbar/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ const useStyles = makeStyles()(() => {
width: '100%',
height: '65px',
background: colors.invariant.component,
borderTop: `2px solid ${colors.invariant.light}`,
marginTop: '12px',
position: 'sticky',
bottom: 0,
zIndex: 1200
zIndex: 15
},
navbox: {
maxHeight: 65,
Expand Down Expand Up @@ -46,10 +45,9 @@ const useStyles = makeStyles()(() => {
activeBox: {
position: 'absolute',
width: '100%',
padding: '0 1px 0 1px',
height: 2,
top: -2,
left: -1,
top: 0,
left: 0,
background: colors.invariant.pinkGreenLinearGradient
}
}
Expand Down
1 change: 0 additions & 1 deletion src/components/Leaderboard/Claim/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const useStyles = makeStyles()(() => ({
transition: 'all 0.3s ease',
'&:hover': {
background: 'linear-gradient(180deg, #3FF2AB 0%, #25B487 100%)',
transform: 'translateY(-2px)',
boxShadow: '0 4px 15px rgba(46, 224, 154, 0.35)'
},
'&:active': {
Expand Down
2 changes: 0 additions & 2 deletions src/components/Leaderboard/InfoComponent/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ export const useStyles = makeStyles()(() => ({
transition: 'all 0.3s ease',
'&:hover': {
background: 'linear-gradient(180deg, #3FF2AB 0%, #25B487 100%)',
transform: 'translateY(-2px)',
boxShadow: '0 4px 15px rgba(46, 224, 154, 0.35)'
},
'&:active': {
transform: 'translateY(1px)',
boxShadow: '0 2px 8px rgba(46, 224, 154, 0.35)'
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ const LeaderboardLpItem: React.FC<LeaderboardLpItemProps> = props => {
navigator.clipboard
.writeText(address.toString())
.then(() => {
copyAddressHandler('Address copied', 'success')
copyAddressHandler('Address copied!', 'success')
})
.catch(() => {
copyAddressHandler('Failed to copy address', 'error')
copyAddressHandler('Failed to copy address!', 'error')
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ const LeaderboardSwapItem: React.FC<LeaderboardSwapItemProps> = props => {
navigator.clipboard
.writeText(address.toString())
.then(() => {
copyAddressHandler('Address copied', 'success')
copyAddressHandler('Address copied!', 'success')
})
.catch(() => {
copyAddressHandler('Failed to copy address', 'error')
copyAddressHandler('Failed to copy address!', 'error')
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ const LeaderboardTotalItem: React.FC<LeaderboardTotalItemProps> = props => {
navigator.clipboard
.writeText(address.toString())
.then(() => {
copyAddressHandler('Address copied', 'success')
copyAddressHandler('Address copied!', 'success')
})
.catch(() => {
copyAddressHandler('Failed to copy address', 'error')
copyAddressHandler('Failed to copy address!', 'error')
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const useStyles = makeStyles()((theme: Theme) => {
},
leaderboardTypeButton: {
position: 'relative',
zIndex: 10,
zIndex: 1301,
width: 140,
height: 32,
borderRadius: 10,
Expand Down
1 change: 0 additions & 1 deletion src/components/Leaderboard/Switcher/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// styles.ts
import { colors, typography } from '@static/theme'
import { makeStyles } from 'tss-react/mui'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Leaderboard/YourProgress/BlurOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const BlurOverlay: React.FC<IBlurOverlayProps> = ({ isConnected }) => {
top: '50%',
left: '50%',
backdropFilter: 'blur(2px)',
zIndex: '2'
zIndex: '999'
}}
/>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/Faucet/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Faucet: React.FC<IProps> = ({ anchorEl, open, handleClose, onFaucet
} else {
dispatch(
snackbarsActions.add({
message: 'Captcha failed. Please try again',
message: 'Captcha failed. Please try again.',
variant: 'error',
persist: false
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export const LockLiquidityModal = ({
onClose={onClose}
className={classes.popover}
anchorReference='none'
slotProps={{
root: {
onClick: e => e.stopPropagation()
}
}}
anchorOrigin={{
vertical: 'top',
horizontal: 'left'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import React from 'react'
import classNames from 'classnames'
import useStyles from './style'
import { Button, Grid, Popover, Typography } from '@mui/material'

export interface IPositionViewActionPopover {
open: boolean
anchorEl: HTMLButtonElement | null
unclaimedFeesInUSD: number
closePosition: () => void
claimFee: () => void
handleClose: () => void
onLockPosition: () => void
isLocked: boolean
}

export const PositionViewActionPopover: React.FC<IPositionViewActionPopover> = ({
anchorEl,
open,
handleClose,
isLocked,
claimFee,
closePosition,
onLockPosition,
unclaimedFeesInUSD
}) => {
const { classes } = useStyles()

return (
<Popover
open={open}
anchorEl={anchorEl}
classes={{ paper: classes.paper }}
onClose={handleClose}
slotProps={{
root: {
onClick: e => e.stopPropagation()
}
}}
anchorOrigin={{
vertical: 'bottom',
horizontal: 'center'
}}
transformOrigin={{
vertical: 'top',
horizontal: 'center'
}}>
<Grid className={classes.root}>
<Grid className={classes.list} container alignContent='space-around' direction='column'>
<Button
disabled={unclaimedFeesInUSD <= 0}
className={classNames(classes.listItem)}
onClick={() => {
claimFee()
handleClose()
}}>
<Typography className={classes.name}>Claim fee</Typography>
</Button>
<Button
className={classNames(classes.listItem)}
disabled={isLocked}
onClick={() => {
closePosition()
handleClose()
}}>
<Typography className={classes.name}>Close position</Typography>
</Button>
</Grid>
<Button
className={classNames(classes.listItem)}
disabled={isLocked}
onClick={() => {
onLockPosition()
handleClose()
}}>
<Typography className={classes.name}>Lock position</Typography>
</Button>
</Grid>
</Popover>
)
}

export default PositionViewActionPopover
Loading