Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
remove a lot of dead code (#1970)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahZinsmeister authored Jul 6, 2021
1 parent c52cd2c commit 2ee9b16
Show file tree
Hide file tree
Showing 65 changed files with 67 additions and 1,286 deletions.
471 changes: 0 additions & 471 deletions src/abis/unisocks.json

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/Badge/RangeBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ const ActiveDot = styled.span`
margin-right: 4px;
`

export const DarkBadge = styled.div`
width: fit-content;
border-radius: 8px;
background-color: ${({ theme }) => theme.bg0};
padding: 4px 6px;
`

export default function RangeBadge({
removed,
inRange,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Badge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum BadgeVariant {
WARNING_OUTLINE = 'WARNING_OUTLINE',
}

export interface BadgeProps {
interface BadgeProps {
variant?: BadgeVariant
}

Expand Down
63 changes: 0 additions & 63 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,48 +149,6 @@ export const ButtonSecondary = styled(Base)`
}
`

export const ButtonPink = styled(Base)`
background-color: ${({ theme }) => theme.primary1};
color: white;
&:focus {
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.primary1)};
background-color: ${({ theme }) => darken(0.05, theme.primary1)};
}
&:hover {
background-color: ${({ theme }) => darken(0.05, theme.primary1)};
}
&:active {
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.primary1)};
background-color: ${({ theme }) => darken(0.1, theme.primary1)};
}
&:disabled {
background-color: ${({ theme }) => theme.primary1};
opacity: 50%;
cursor: auto;
}
`

export const ButtonUNIGradient = styled(ButtonPrimary)`
color: white;
padding: 4px 8px;
height: 36px;
font-weight: 500;
background-color: ${({ theme }) => theme.bg3};
background: radial-gradient(174.47% 188.91% at 1.84% 0%, #ff007a 0%, #2172e5 100%), #edeef2;
width: fit-content;
position: relative;
cursor: pointer;
border: none;
white-space: no-wrap;
:hover {
opacity: 0.8;
}
:active {
opacity: 0.9;
}
`

export const ButtonOutlined = styled(Base)`
border: 1px solid ${({ theme }) => theme.bg2};
background-color: transparent;
Expand Down Expand Up @@ -255,27 +213,6 @@ export const ButtonText = styled(Base)`
}
`

export const ButtonWhite = styled(Base)`
border: 1px solid #edeef2;
background-color: ${({ theme }) => theme.bg1};
color: black;
&:focus {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
box-shadow: 0 0 0 1pt ${darken(0.05, '#edeef2')};
}
&:hover {
box-shadow: 0 0 0 1pt ${darken(0.1, '#edeef2')};
}
&:active {
box-shadow: 0 0 0 1pt ${darken(0.1, '#edeef2')};
}
&:disabled {
opacity: 50%;
cursor: auto;
}
`

const ButtonConfirmedStyle = styled(Base)`
background-color: ${({ theme }) => theme.bg3};
color: ${({ theme }) => theme.text1};
Expand Down
6 changes: 0 additions & 6 deletions src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ export const YellowCard = styled(Card)`
font-weight: 500;
`

export const PinkCard = styled(Card)`
background-color: rgba(255, 0, 122, 0.03);
color: ${({ theme }) => theme.primary1};
font-weight: 500;
`

export const BlueCard = styled(Card)`
background-color: ${({ theme }) => theme.primary5};
color: ${({ theme }) => theme.blue2};
Expand Down
2 changes: 1 addition & 1 deletion src/components/DoubleLogo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Wrapper = styled.div<{ margin: boolean; sizeraw: number }>`
margin-left: ${({ sizeraw, margin }) => margin && (sizeraw / 3 + 8).toString() + 'px'};
`

export interface DoubleCurrencyLogoProps {
interface DoubleCurrencyLogoProps {
margin?: boolean
size?: number
currency0?: Currency
Expand Down
53 changes: 0 additions & 53 deletions src/components/Header/URLWarning.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const StyledExternalLink = styled(ExternalLink).attrs({
`}
`

export const StyledMenuButton = styled.button`
const StyledMenuButton = styled.button`
position: relative;
width: 100%;
height: 100%;
Expand Down
152 changes: 0 additions & 152 deletions src/components/LineChart/data.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/LineChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Wrapper = styled(Card)`
width: 100%;
padding: 1rem;
display: flex;
background-color: ${({ theme }) => theme.bg0}
background-color: ${({ theme }) => theme.bg0};
flex-direction: column;
> * {
font-size: 1rem;
Expand All @@ -19,7 +19,7 @@ const Wrapper = styled(Card)`

const DEFAULT_HEIGHT = 300

export type LineChartProps = {
type LineChartProps = {
data: any[]
color?: string | undefined
height?: number | undefined
Expand Down
2 changes: 1 addition & 1 deletion src/components/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useTheme from '../../hooks/useTheme'

const BAD_SRCS: { [tokenAddress: string]: true } = {}

export interface LogoProps extends Pick<ImageProps, 'style' | 'alt' | 'className'> {
interface LogoProps extends Pick<ImageProps, 'style' | 'alt' | 'className'> {
srcs: string[]
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/Popups/PopupItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PopupContent } from '../../state/application/actions'
import { useRemovePopup } from '../../state/application/hooks'
import TransactionPopup from './TransactionPopup'

export const StyledClose = styled(X)`
const StyledClose = styled(X)`
position: absolute;
right: 10px;
top: 10px;
Expand All @@ -16,7 +16,7 @@ export const StyledClose = styled(X)`
cursor: pointer;
}
`
export const Popup = styled.div`
const Popup = styled.div`
display: inline-block;
width: 100%;
padding: 1em;
Expand Down
Loading

0 comments on commit 2ee9b16

Please sign in to comment.