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
5126e24d
Unverified
Commit
5126e24d
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 some unused exports (#5516)
parent
a06bb790
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
21 deletions
+15
-21
index.tsx
src/components/PrivacyPolicy/index.tsx
+1
-1
index.tsx
src/components/SearchModal/CurrencyList/index.tsx
+1
-1
CurrencySearchModal.tsx
src/components/SearchModal/CurrencySearchModal.tsx
+1
-1
styleds.tsx
src/components/SearchModal/styleds.tsx
+0
-6
index.tsx
src/components/TokenSafety/index.tsx
+1
-1
About.tsx
src/components/Tokens/TokenDetails/About.tsx
+1
-1
AddressSection.tsx
src/components/Tokens/TokenDetails/AddressSection.tsx
+1
-1
PriceChart.tsx
src/components/Tokens/TokenDetails/PriceChart.tsx
+4
-4
StatsSection.tsx
src/components/Tokens/TokenDetails/StatsSection.tsx
+1
-1
TimeSelector.tsx
src/components/Tokens/TokenDetails/TimeSelector.tsx
+2
-2
TokenRow.tsx
src/components/Tokens/TokenTable/TokenRow.tsx
+1
-1
index.tsx
src/components/Widget/index.tsx
+1
-1
No files found.
src/components/PrivacyPolicy/index.tsx
View file @
5126e24d
...
...
@@ -110,7 +110,7 @@ export function PrivacyPolicyModal() {
)
}
export
function
PrivacyPolicy
()
{
function
PrivacyPolicy
()
{
return
(
<
Wrapper
draggable=
"true"
...
...
src/components/SearchModal/CurrencyList/index.tsx
View file @
5126e24d
...
...
@@ -60,7 +60,7 @@ const Tag = styled.div`
margin-right: 4px;
`
export
const
WarningContainer
=
styled
.
div
`
const
WarningContainer
=
styled
.
div
`
margin-left: 0.3em;
`
...
...
src/components/SearchModal/CurrencySearchModal.tsx
View file @
5126e24d
...
...
@@ -19,7 +19,7 @@ interface CurrencySearchModalProps {
disableNonToken
?:
boolean
}
e
xport
e
num
CurrencyModalView
{
enum
CurrencyModalView
{
search
,
importToken
,
tokenSafety
,
...
...
src/components/SearchModal/styleds.tsx
View file @
5126e24d
...
...
@@ -5,12 +5,6 @@ import styled from 'styled-components/macro'
import
{
AutoColumn
}
from
'
../Column
'
import
{
RowBetween
}
from
'
../Row
'
export
const
Checkbox
=
styled
.
input
`
border: 1px solid
${({
theme
})
=>
theme
.
deprecated_red3
}
;
height: 20px;
margin: 0;
`
export
const
PaddedColumn
=
styled
(
AutoColumn
)
`
padding: 20px;
`
...
...
src/components/TokenSafety/index.tsx
View file @
5126e24d
...
...
@@ -157,7 +157,7 @@ const LinkIconWrapper = styled.div`
display: flex;
`
export
function
ExternalLinkIcon
()
{
function
ExternalLinkIcon
()
{
return
(
<
LinkIconWrapper
>
<
ExplorerLinkIcon
/>
...
...
src/components/Tokens/TokenDetails/About.tsx
View file @
5126e24d
...
...
@@ -57,7 +57,7 @@ export const AboutHeader = styled(ThemedText.MediumHeader)`
font-size: 28px !important;
`
export
const
ResourcesContainer
=
styled
.
div
`
const
ResourcesContainer
=
styled
.
div
`
display: flex;
padding-top: 12px;
gap: 14px;
...
...
src/components/Tokens/TokenDetails/AddressSection.tsx
View file @
5126e24d
...
...
@@ -2,7 +2,7 @@ import { Trans } from '@lingui/macro'
import
styled
from
'
styled-components/macro
'
import
{
CopyContractAddress
,
ThemedText
}
from
'
theme
'
export
const
ContractAddressSection
=
styled
.
div
`
const
ContractAddressSection
=
styled
.
div
`
display: flex;
flex-direction: column;
color:
${({
theme
})
=>
theme
.
textSecondary
}
;
...
...
src/components/Tokens/TokenDetails/PriceChart.tsx
View file @
5126e24d
...
...
@@ -22,7 +22,7 @@ import {
weekFormatter
,
}
from
'
utils/formatChartTimes
'
export
const
DATA_EMPTY
=
{
value
:
0
,
timestamp
:
0
}
const
DATA_EMPTY
=
{
value
:
0
,
timestamp
:
0
}
export
function
getPriceBounds
(
pricePoints
:
PricePoint
[]):
[
number
,
number
]
{
const
prices
=
pricePoints
.
map
((
x
)
=>
x
.
value
)
...
...
@@ -38,7 +38,7 @@ const StyledDownArrow = styled(ArrowDownRight)`
color:
${({
theme
})
=>
theme
.
accentFailure
}
;
`
export
function
calculateDelta
(
start
:
number
,
current
:
number
)
{
function
calculateDelta
(
start
:
number
,
current
:
number
)
{
return
(
current
/
start
-
1
)
*
100
}
...
...
@@ -66,7 +66,7 @@ export const DeltaText = styled.span<{ delta: number | undefined }>`
delta
!==
undefined
?
(
Math
.
sign
(
delta
)
<
0
?
theme
.
accentFailure
:
theme
.
accentSuccess
)
:
theme
.
textPrimary
}
;
`
export
const
ChartHeader
=
styled
.
div
`
const
ChartHeader
=
styled
.
div
`
position: absolute;
`
export
const
TokenPrice
=
styled
.
span
`
...
...
@@ -104,7 +104,7 @@ function formatDisplayPrice(value: number) {
return
formatUSDPrice
(
value
)
}
export
function
PriceChart
({
width
,
height
,
prices
,
timePeriod
}:
PriceChartProps
)
{
function
PriceChart
({
width
,
height
,
prices
,
timePeriod
}:
PriceChartProps
)
{
const
locale
=
useActiveLocale
()
const
theme
=
useTheme
()
...
...
src/components/Tokens/TokenDetails/StatsSection.tsx
View file @
5126e24d
...
...
@@ -19,7 +19,7 @@ export const StatWrapper = styled.div`
gap: 4px;
padding: 24px 0px;
`
export
const
TokenStatsSection
=
styled
.
div
`
const
TokenStatsSection
=
styled
.
div
`
display: flex;
flex-wrap: wrap;
`
...
...
src/components/Tokens/TokenDetails/TimeSelector.tsx
View file @
5126e24d
...
...
@@ -5,12 +5,12 @@ import styled from 'styled-components/macro'
import
{
MEDIUM_MEDIA_BREAKPOINT
}
from
'
../constants
'
import
{
DISPLAYS
,
ORDERED_TIMES
}
from
'
../TokenTable/TimeSelector
'
export
const
TimeOptionsWrapper
=
styled
.
div
`
const
TimeOptionsWrapper
=
styled
.
div
`
display: flex;
width: 100%;
justify-content: flex-end;
`
export
const
TimeOptionsContainer
=
styled
.
div
`
const
TimeOptionsContainer
=
styled
.
div
`
display: flex;
justify-content: flex-end;
margin-top: 4px;
...
...
src/components/Tokens/TokenTable/TokenRow.tsx
View file @
5126e24d
...
...
@@ -339,7 +339,7 @@ function HeaderCell({
}
/* Token Row: skeleton row component */
export
function TokenRow({
function TokenRow({
header,
listNumber,
tokenInfo,
...
...
src/components/Widget/index.tsx
View file @
5126e24d
...
...
@@ -37,7 +37,7 @@ function useWidgetTheme() {
return
useIsDarkMode
()
?
DARK_THEME
:
LIGHT_THEME
}
export
interface
WidgetProps
{
interface
WidgetProps
{
token
?:
Currency
onTokenChange
?:
(
token
:
Currency
)
=>
void
onReviewSwapClick
?:
OnReviewSwapClick
...
...
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