Commit 5126e24d authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

chore: remove some unused exports (#5516)

parent a06bb790
......@@ -110,7 +110,7 @@ export function PrivacyPolicyModal() {
)
}
export function PrivacyPolicy() {
function PrivacyPolicy() {
return (
<Wrapper
draggable="true"
......
......@@ -60,7 +60,7 @@ const Tag = styled.div`
margin-right: 4px;
`
export const WarningContainer = styled.div`
const WarningContainer = styled.div`
margin-left: 0.3em;
`
......
......@@ -19,7 +19,7 @@ interface CurrencySearchModalProps {
disableNonToken?: boolean
}
export enum CurrencyModalView {
enum CurrencyModalView {
search,
importToken,
tokenSafety,
......
......@@ -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;
`
......
......@@ -157,7 +157,7 @@ const LinkIconWrapper = styled.div`
display: flex;
`
export function ExternalLinkIcon() {
function ExternalLinkIcon() {
return (
<LinkIconWrapper>
<ExplorerLinkIcon />
......
......@@ -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;
......
......@@ -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};
......
......@@ -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()
......
......@@ -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;
`
......
......@@ -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;
......
......@@ -339,7 +339,7 @@ function HeaderCell({
}
/* Token Row: skeleton row component */
export function TokenRow({
function TokenRow({
header,
listNumber,
tokenInfo,
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment