refactor: move pool details components to the components folder (#7553)
* refactor: move pool details components to the components folder * cleanup index imports * update snapshot
This commit is contained in:
parent
c27e70b87c
commit
ebfcd8fbbe
0
src/pages/PoolDetails/PoolDetailsHeader.tsx → src/components/Pools/PoolDetails/PoolDetailsHeader.tsx
0
src/pages/PoolDetails/PoolDetailsHeader.tsx → src/components/Pools/PoolDetails/PoolDetailsHeader.tsx
0
src/pages/PoolDetails/PoolDetailsStats.tsx → src/components/Pools/PoolDetails/PoolDetailsStats.tsx
0
src/pages/PoolDetails/PoolDetailsStats.tsx → src/components/Pools/PoolDetails/PoolDetailsStats.tsx
@ -208,174 +208,6 @@ exports[`PoolDetailsPage pool header is displayed when data is received from the
|
|||||||
background-size: 400%;
|
background-size: 400%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c42 {
|
|
||||||
background-color: transparent;
|
|
||||||
bottom: 0;
|
|
||||||
border-radius: inherit;
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
-webkit-transition: 150ms ease background-color;
|
|
||||||
transition: 150ms ease background-color;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c39 {
|
|
||||||
-webkit-align-items: center;
|
|
||||||
-webkit-box-align: center;
|
|
||||||
-ms-flex-align: center;
|
|
||||||
align-items: center;
|
|
||||||
background-color: #FFEFFF;
|
|
||||||
border-radius: 16px;
|
|
||||||
border: 0;
|
|
||||||
color: #FC72FF;
|
|
||||||
cursor: pointer;
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
-webkit-flex-direction: row;
|
|
||||||
-ms-flex-direction: row;
|
|
||||||
flex-direction: row;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 535;
|
|
||||||
gap: 12px;
|
|
||||||
-webkit-box-pack: center;
|
|
||||||
-webkit-justify-content: center;
|
|
||||||
-ms-flex-pack: center;
|
|
||||||
justify-content: center;
|
|
||||||
line-height: 20px;
|
|
||||||
padding: 10px 12px;
|
|
||||||
position: relative;
|
|
||||||
-webkit-transition: 150ms ease opacity;
|
|
||||||
transition: 150ms ease opacity;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
-ms-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c39:active .c41 {
|
|
||||||
background-color: #B8C0DC3d;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c39:focus .c41 {
|
|
||||||
background-color: #B8C0DC3d;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c39:hover .c41 {
|
|
||||||
background-color: #98A1C014;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c39:disabled {
|
|
||||||
cursor: default;
|
|
||||||
opacity: 0.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c39:disabled:active .c41,
|
|
||||||
.c39:disabled:focus .c41,
|
|
||||||
.c39:disabled:hover .c41 {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c54 {
|
|
||||||
color: #FF5F52;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c72 {
|
|
||||||
opacity: 0;
|
|
||||||
-webkit-transition: opacity 250ms ease-in;
|
|
||||||
transition: opacity 250ms ease-in;
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c71 {
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
background: #22222212;
|
|
||||||
-webkit-transition: background-color 250ms ease-in;
|
|
||||||
transition: background-color 250ms ease-in;
|
|
||||||
box-shadow: 0 0 1px white;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c70 {
|
|
||||||
position: relative;
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c18 {
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
-webkit-flex-direction: column;
|
|
||||||
-ms-flex-direction: column;
|
|
||||||
flex-direction: column;
|
|
||||||
height: 436px;
|
|
||||||
margin-bottom: 24px;
|
|
||||||
-webkit-align-items: flex-start;
|
|
||||||
-webkit-box-align: flex-start;
|
|
||||||
-ms-flex-align: flex-start;
|
|
||||||
align-items: flex-start;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c24 {
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
-webkit-flex-direction: row;
|
|
||||||
-ms-flex-direction: row;
|
|
||||||
flex-direction: row;
|
|
||||||
-webkit-align-items: flex-end;
|
|
||||||
-webkit-box-align: flex-end;
|
|
||||||
-ms-flex-align: flex-end;
|
|
||||||
align-items: flex-end;
|
|
||||||
height: 100%;
|
|
||||||
margin-bottom: 44px;
|
|
||||||
padding-bottom: 66px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c20 {
|
|
||||||
height: 16px;
|
|
||||||
width: 180px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c21 {
|
|
||||||
height: 32px;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c22 {
|
|
||||||
margin-top: 4px;
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c25 {
|
|
||||||
-webkit-animation: wave 8s cubic-bezier(0.36,0.45,0.63,0.53) infinite;
|
|
||||||
animation: wave 8s cubic-bezier(0.36,0.45,0.63,0.53) infinite;
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
overflow: hidden;
|
|
||||||
margin-top: 90px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c23 {
|
|
||||||
height: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.c33 {
|
.c33 {
|
||||||
height: 16px;
|
height: 16px;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
@ -503,6 +335,33 @@ exports[`PoolDetailsPage pool header is displayed when data is received from the
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c72 {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transition: opacity 250ms ease-in;
|
||||||
|
transition: opacity 250ms ease-in;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c71 {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
background: #22222212;
|
||||||
|
-webkit-transition: background-color 250ms ease-in;
|
||||||
|
transition: background-color 250ms ease-in;
|
||||||
|
box-shadow: 0 0 1px white;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c70 {
|
||||||
|
position: relative;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
.c62 {
|
.c62 {
|
||||||
display: none;
|
display: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -613,6 +472,10 @@ exports[`PoolDetailsPage pool header is displayed when data is received from the
|
|||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c54 {
|
||||||
|
color: #FF5F52;
|
||||||
|
}
|
||||||
|
|
||||||
.c44 {
|
.c44 {
|
||||||
font-weight: 485;
|
font-weight: 485;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
@ -685,6 +548,78 @@ exports[`PoolDetailsPage pool header is displayed when data is received from the
|
|||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c42 {
|
||||||
|
background-color: transparent;
|
||||||
|
bottom: 0;
|
||||||
|
border-radius: inherit;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
-webkit-transition: 150ms ease background-color;
|
||||||
|
transition: 150ms ease background-color;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c39 {
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #FFEFFF;
|
||||||
|
border-radius: 16px;
|
||||||
|
border: 0;
|
||||||
|
color: #FC72FF;
|
||||||
|
cursor: pointer;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-direction: row;
|
||||||
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 535;
|
||||||
|
gap: 12px;
|
||||||
|
-webkit-box-pack: center;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 20px;
|
||||||
|
padding: 10px 12px;
|
||||||
|
position: relative;
|
||||||
|
-webkit-transition: 150ms ease opacity;
|
||||||
|
transition: 150ms ease opacity;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c39:active .c41 {
|
||||||
|
background-color: #B8C0DC3d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c39:focus .c41 {
|
||||||
|
background-color: #B8C0DC3d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c39:hover .c41 {
|
||||||
|
background-color: #98A1C014;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c39:disabled {
|
||||||
|
cursor: default;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c39:disabled:active .c41,
|
||||||
|
.c39:disabled:focus .c41,
|
||||||
|
.c39:disabled:hover .c41 {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.c38 {
|
.c38 {
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
@ -815,6 +750,71 @@ exports[`PoolDetailsPage pool header is displayed when data is received from the
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c18 {
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-direction: column;
|
||||||
|
-ms-flex-direction: column;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 436px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
-webkit-align-items: flex-start;
|
||||||
|
-webkit-box-align: flex-start;
|
||||||
|
-ms-flex-align: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c24 {
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-direction: row;
|
||||||
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
-webkit-align-items: flex-end;
|
||||||
|
-webkit-box-align: flex-end;
|
||||||
|
-ms-flex-align: flex-end;
|
||||||
|
align-items: flex-end;
|
||||||
|
height: 100%;
|
||||||
|
margin-bottom: 44px;
|
||||||
|
padding-bottom: 66px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c20 {
|
||||||
|
height: 16px;
|
||||||
|
width: 180px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c21 {
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c22 {
|
||||||
|
margin-top: 4px;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c25 {
|
||||||
|
-webkit-animation: wave 8s cubic-bezier(0.36,0.45,0.63,0.53) infinite;
|
||||||
|
animation: wave 8s cubic-bezier(0.36,0.45,0.63,0.53) infinite;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-top: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c23 {
|
||||||
|
height: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
.c2 {
|
.c2 {
|
||||||
padding: 48px;
|
padding: 48px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
import { Trans } from '@lingui/macro'
|
import { Trans } from '@lingui/macro'
|
||||||
import Column from 'components/Column'
|
import Column from 'components/Column'
|
||||||
|
import { PoolDetailsHeader } from 'components/Pools/PoolDetails/PoolDetailsHeader'
|
||||||
|
import { PoolDetailsLink } from 'components/Pools/PoolDetails/PoolDetailsLink'
|
||||||
|
import { PoolDetailsStats } from 'components/Pools/PoolDetails/PoolDetailsStats'
|
||||||
|
import { PoolDetailsStatsButtons } from 'components/Pools/PoolDetails/PoolDetailsStatsButtons'
|
||||||
|
import { PoolDetailsTableSkeleton } from 'components/Pools/PoolDetails/PoolDetailsTableSkeleton'
|
||||||
import Row from 'components/Row'
|
import Row from 'components/Row'
|
||||||
import { LoadingBubble } from 'components/Tokens/loading'
|
import { LoadingBubble } from 'components/Tokens/loading'
|
||||||
import { LoadingChart } from 'components/Tokens/TokenDetails/Skeleton'
|
import { LoadingChart } from 'components/Tokens/TokenDetails/Skeleton'
|
||||||
@ -13,12 +18,6 @@ import styled from 'styled-components'
|
|||||||
import { BREAKPOINTS } from 'theme'
|
import { BREAKPOINTS } from 'theme'
|
||||||
import { isAddress } from 'utils'
|
import { isAddress } from 'utils'
|
||||||
|
|
||||||
import { PoolDetailsHeader } from './PoolDetailsHeader'
|
|
||||||
import { PoolDetailsLink } from './PoolDetailsLink'
|
|
||||||
import { PoolDetailsStats } from './PoolDetailsStats'
|
|
||||||
import { PoolDetailsStatsButtons } from './PoolDetailsStatsButtons'
|
|
||||||
import { PoolDetailsTableSkeleton } from './PoolDetailsTableSkeleton'
|
|
||||||
|
|
||||||
const PageWrapper = styled(Row)`
|
const PageWrapper = styled(Row)`
|
||||||
padding: 48px;
|
padding: 48px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user