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() { ...@@ -110,7 +110,7 @@ export function PrivacyPolicyModal() {
) )
} }
export function PrivacyPolicy() { function PrivacyPolicy() {
return ( return (
<Wrapper <Wrapper
draggable="true" draggable="true"
......
...@@ -60,7 +60,7 @@ const Tag = styled.div` ...@@ -60,7 +60,7 @@ const Tag = styled.div`
margin-right: 4px; margin-right: 4px;
` `
export const WarningContainer = styled.div` const WarningContainer = styled.div`
margin-left: 0.3em; margin-left: 0.3em;
` `
......
...@@ -19,7 +19,7 @@ interface CurrencySearchModalProps { ...@@ -19,7 +19,7 @@ interface CurrencySearchModalProps {
disableNonToken?: boolean disableNonToken?: boolean
} }
export enum CurrencyModalView { enum CurrencyModalView {
search, search,
importToken, importToken,
tokenSafety, tokenSafety,
......
...@@ -5,12 +5,6 @@ import styled from 'styled-components/macro' ...@@ -5,12 +5,6 @@ import styled from 'styled-components/macro'
import { AutoColumn } from '../Column' import { AutoColumn } from '../Column'
import { RowBetween } from '../Row' 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)` export const PaddedColumn = styled(AutoColumn)`
padding: 20px; padding: 20px;
` `
......
...@@ -157,7 +157,7 @@ const LinkIconWrapper = styled.div` ...@@ -157,7 +157,7 @@ const LinkIconWrapper = styled.div`
display: flex; display: flex;
` `
export function ExternalLinkIcon() { function ExternalLinkIcon() {
return ( return (
<LinkIconWrapper> <LinkIconWrapper>
<ExplorerLinkIcon /> <ExplorerLinkIcon />
......
...@@ -57,7 +57,7 @@ export const AboutHeader = styled(ThemedText.MediumHeader)` ...@@ -57,7 +57,7 @@ export const AboutHeader = styled(ThemedText.MediumHeader)`
font-size: 28px !important; font-size: 28px !important;
` `
export const ResourcesContainer = styled.div` const ResourcesContainer = styled.div`
display: flex; display: flex;
padding-top: 12px; padding-top: 12px;
gap: 14px; gap: 14px;
......
...@@ -2,7 +2,7 @@ import { Trans } from '@lingui/macro' ...@@ -2,7 +2,7 @@ import { Trans } from '@lingui/macro'
import styled from 'styled-components/macro' import styled from 'styled-components/macro'
import { CopyContractAddress, ThemedText } from 'theme' import { CopyContractAddress, ThemedText } from 'theme'
export const ContractAddressSection = styled.div` const ContractAddressSection = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
color: ${({ theme }) => theme.textSecondary}; color: ${({ theme }) => theme.textSecondary};
......
...@@ -22,7 +22,7 @@ import { ...@@ -22,7 +22,7 @@ import {
weekFormatter, weekFormatter,
} from 'utils/formatChartTimes' } 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] { export function getPriceBounds(pricePoints: PricePoint[]): [number, number] {
const prices = pricePoints.map((x) => x.value) const prices = pricePoints.map((x) => x.value)
...@@ -38,7 +38,7 @@ const StyledDownArrow = styled(ArrowDownRight)` ...@@ -38,7 +38,7 @@ const StyledDownArrow = styled(ArrowDownRight)`
color: ${({ theme }) => theme.accentFailure}; color: ${({ theme }) => theme.accentFailure};
` `
export function calculateDelta(start: number, current: number) { function calculateDelta(start: number, current: number) {
return (current / start - 1) * 100 return (current / start - 1) * 100
} }
...@@ -66,7 +66,7 @@ export const DeltaText = styled.span<{ delta: number | undefined }>` ...@@ -66,7 +66,7 @@ export const DeltaText = styled.span<{ delta: number | undefined }>`
delta !== undefined ? (Math.sign(delta) < 0 ? theme.accentFailure : theme.accentSuccess) : theme.textPrimary}; delta !== undefined ? (Math.sign(delta) < 0 ? theme.accentFailure : theme.accentSuccess) : theme.textPrimary};
` `
export const ChartHeader = styled.div` const ChartHeader = styled.div`
position: absolute; position: absolute;
` `
export const TokenPrice = styled.span` export const TokenPrice = styled.span`
...@@ -104,7 +104,7 @@ function formatDisplayPrice(value: number) { ...@@ -104,7 +104,7 @@ function formatDisplayPrice(value: number) {
return formatUSDPrice(value) return formatUSDPrice(value)
} }
export function PriceChart({ width, height, prices, timePeriod }: PriceChartProps) { function PriceChart({ width, height, prices, timePeriod }: PriceChartProps) {
const locale = useActiveLocale() const locale = useActiveLocale()
const theme = useTheme() const theme = useTheme()
......
...@@ -19,7 +19,7 @@ export const StatWrapper = styled.div` ...@@ -19,7 +19,7 @@ export const StatWrapper = styled.div`
gap: 4px; gap: 4px;
padding: 24px 0px; padding: 24px 0px;
` `
export const TokenStatsSection = styled.div` const TokenStatsSection = styled.div`
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
` `
......
...@@ -5,12 +5,12 @@ import styled from 'styled-components/macro' ...@@ -5,12 +5,12 @@ import styled from 'styled-components/macro'
import { MEDIUM_MEDIA_BREAKPOINT } from '../constants' import { MEDIUM_MEDIA_BREAKPOINT } from '../constants'
import { DISPLAYS, ORDERED_TIMES } from '../TokenTable/TimeSelector' import { DISPLAYS, ORDERED_TIMES } from '../TokenTable/TimeSelector'
export const TimeOptionsWrapper = styled.div` const TimeOptionsWrapper = styled.div`
display: flex; display: flex;
width: 100%; width: 100%;
justify-content: flex-end; justify-content: flex-end;
` `
export const TimeOptionsContainer = styled.div` const TimeOptionsContainer = styled.div`
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
margin-top: 4px; margin-top: 4px;
......
...@@ -339,7 +339,7 @@ function HeaderCell({ ...@@ -339,7 +339,7 @@ function HeaderCell({
} }
/* Token Row: skeleton row component */ /* Token Row: skeleton row component */
export function TokenRow({ function TokenRow({
header, header,
listNumber, listNumber,
tokenInfo, tokenInfo,
......
...@@ -37,7 +37,7 @@ function useWidgetTheme() { ...@@ -37,7 +37,7 @@ function useWidgetTheme() {
return useIsDarkMode() ? DARK_THEME : LIGHT_THEME return useIsDarkMode() ? DARK_THEME : LIGHT_THEME
} }
export interface WidgetProps { interface WidgetProps {
token?: Currency token?: Currency
onTokenChange?: (token: Currency) => void onTokenChange?: (token: Currency) => void
onReviewSwapClick?: OnReviewSwapClick 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