Commit d7785942 authored by Callil Capuozzo's avatar Callil Capuozzo Committed by GitHub

Update migration styles (#78)

* re-work migrate page

* Layout Tweaks

* cleanup
Co-authored-by: default avatarNoah Zinsmeister <noahwz@gmail.com>
parent ed801deb
...@@ -7,7 +7,9 @@ export enum BadgeVariant { ...@@ -7,7 +7,9 @@ export enum BadgeVariant {
DEFAULT = 'DEFAULT', DEFAULT = 'DEFAULT',
NEGATIVE = 'NEGATIVE', NEGATIVE = 'NEGATIVE',
POSITIVE = 'POSITIVE', POSITIVE = 'POSITIVE',
PRIMARY = 'PRIMARY',
WARNING = 'WARNING', WARNING = 'WARNING',
WARNING_OUTLINE = 'WARNING_OUTLINE', WARNING_OUTLINE = 'WARNING_OUTLINE',
} }
...@@ -21,6 +23,8 @@ function pickBackgroundColor(variant: BadgeVariant | undefined, theme: DefaultTh ...@@ -21,6 +23,8 @@ function pickBackgroundColor(variant: BadgeVariant | undefined, theme: DefaultTh
return theme.error return theme.error
case BadgeVariant.POSITIVE: case BadgeVariant.POSITIVE:
return theme.success return theme.success
case BadgeVariant.PRIMARY:
return theme.primary1
case BadgeVariant.WARNING: case BadgeVariant.WARNING:
return theme.warning return theme.warning
case BadgeVariant.WARNING_OUTLINE: case BadgeVariant.WARNING_OUTLINE:
......
...@@ -38,7 +38,7 @@ const FocusedOutlineCard = styled(OutlineCard)<{ active?: boolean; pulsing?: boo ...@@ -38,7 +38,7 @@ const FocusedOutlineCard = styled(OutlineCard)<{ active?: boolean; pulsing?: boo
` `
const StyledInput = styled(NumericalInput)<{ usePercent?: boolean }>` const StyledInput = styled(NumericalInput)<{ usePercent?: boolean }>`
background-color: ${({ theme }) => theme.bg0}; background-color: transparent;
text-align: left; text-align: left;
margin-right: 2px; margin-right: 2px;
` `
......
...@@ -17,6 +17,7 @@ import DoubleCurrencyLogo from '../DoubleLogo' ...@@ -17,6 +17,7 @@ import DoubleCurrencyLogo from '../DoubleLogo'
import { RowFixed, AutoRow } from '../Row' import { RowFixed, AutoRow } from '../Row'
import { Dots } from '../swap/styleds' import { Dots } from '../swap/styleds'
import { FixedHeightRow } from '.' import { FixedHeightRow } from '.'
import Badge, { BadgeVariant } from 'components/Badge'
const StyledPositionCard = styled(LightCard)<{ bgColor: any }>` const StyledPositionCard = styled(LightCard)<{ bgColor: any }>`
border: none; border: none;
...@@ -49,7 +50,8 @@ export default function SushiPositionCard({ tokenA, tokenB, liquidityToken, bord ...@@ -49,7 +50,8 @@ export default function SushiPositionCard({ tokenA, tokenB, liquidityToken, bord
<Text fontWeight={500} fontSize={20}> <Text fontWeight={500} fontSize={20}>
{!currency0 || !currency1 ? <Dots>Loading</Dots> : `${currency0.symbol}/${currency1.symbol}`} {!currency0 || !currency1 ? <Dots>Loading</Dots> : `${currency0.symbol}/${currency1.symbol}`}
</Text> </Text>
(Sushi)
<Badge variant={BadgeVariant.WARNING}>Sushi</Badge>
</AutoRow> </AutoRow>
<RowFixed gap="8px"> <RowFixed gap="8px">
<ButtonEmpty <ButtonEmpty
......
This diff is collapsed.
import { createStore, Store } from 'redux' import { createStore, Store } from 'redux'
import { DEFAULT_DEADLINE_FROM_NOW, INITIAL_ALLOWED_SLIPPAGE } from '../../constants' import { DEFAULT_DEADLINE_FROM_NOW } from '../../constants'
import { updateVersion } from '../global/actions' import { updateVersion } from '../global/actions'
import reducer, { initialState, UserState } from './reducer' import reducer, { initialState, UserState } from './reducer'
......
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