Skip to content

Commit

Permalink
Updated Menu and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
demcam committed May 30, 2021
1 parent a0aad3d commit acededc
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 21 deletions.
3 changes: 3 additions & 0 deletions src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const Menu: React.FC = (props) => {
<a className="nav_link" href="https://www.binance.org/en/bridge">
<li>Bridge</li>
</a>
<a className="nav_link" href={`${origin}/bsc/farms`}>
<li>Farms</li>
</a>
{/* <NavLink className="nav_link" to="/soku" activeClassName="active">
<li>SOKU</li>
</NavLink> */}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchModal/CurrencySearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export function CurrencySearch({
<Separator />

<div style={{ flex: '1' }}>
<AutoSizer disableWidth style={{ border: '1px solid red' }}>
<AutoSizer disableWidth>
{({ height }) => (
<CurrencyList
height={height}
Expand Down
1 change: 1 addition & 0 deletions src/pages/Pool/styleds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styled from 'styled-components'

export const Wrapper = styled.div`
position: relative;
padding: 0 1rem;
`

export const ClickableText = styled(Text)`
Expand Down
42 changes: 23 additions & 19 deletions src/pages/RemoveLiquidity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import useI18n from 'hooks/useI18n'
import { AutoColumn, ColumnCenter } from '../../components/Column'
import TransactionConfirmationModal, { ConfirmationModalContent } from '../../components/TransactionConfirmationModal'
import CurrencyInputPanel from '../../components/CurrencyInputPanel'
import CardNav from '../../components/CardNav'

import DoubleCurrencyLogo from '../../components/DoubleLogo'
import { AddRemoveTabs } from '../../components/NavigationTabs'
import { MinimalPositionCard } from '../../components/PositionCard'
Expand Down Expand Up @@ -50,8 +52,8 @@ const OutlineCard = styled.div`
`

const Body = styled.div`
padding-left: 24px;
padding-right: 204px;
// padding-left: 24px;
// padding-right: 204px;
`

export default function RemoveLiquidity({
Expand Down Expand Up @@ -359,8 +361,8 @@ export default function RemoveLiquidity({

function modalBottom() {
return (
<>
<RowBetween>
<div style={{ background: '#E9EAEB', width: '100%', padding: '20px' }}>
<RowBetween style={{ padding: '0.5rem' }}>
<Text color="textSubtle">{`LP ${currencyA?.symbol}/${currencyB?.symbol}`} Burned</Text>
<RowFixed>
<DoubleCurrencyLogo currency0={currencyA} currency1={currencyB} margin />
Expand All @@ -369,24 +371,28 @@ export default function RemoveLiquidity({
</RowBetween>
{pair && (
<>
<RowBetween>
<RowBetween style={{ padding: '0.5rem' }}>
<Text color="textSubtle">{TranslateString(1182, 'Price')}</Text>
<Text>
1 {currencyA?.symbol} = {tokenA ? pair.priceOf(tokenA).toSignificant(6) : '-'} {currencyB?.symbol}
</Text>
</RowBetween>
<RowBetween>
<RowBetween style={{ padding: '0.5rem' }}>
<div />
<Text>
1 {currencyB?.symbol} = {tokenB ? pair.priceOf(tokenB).toSignificant(6) : '-'} {currencyA?.symbol}
</Text>
</RowBetween>
</>
)}
<Button disabled={!(approval === ApprovalState.APPROVED || signatureData !== null)} onClick={onRemove}>
<Button
style={{ background: '#04bbfb', width: '100%' }}
disabled={!(approval === ApprovalState.APPROVED || signatureData !== null)}
onClick={onRemove}
>
{TranslateString(1136, 'Confirm')}
</Button>
</>
</div>
)
}

Expand Down Expand Up @@ -448,6 +454,8 @@ export default function RemoveLiquidity({

return (
<>
<CardNav />

<AppBody>
<AddRemoveTabs adding={false} />
<Wrapper>
Expand Down Expand Up @@ -490,28 +498,28 @@ export default function RemoveLiquidity({
</Flex>
<Flex justifyContent="space-around">
<Button
variant="tertiary"
style={{ background: '#04bbfb', color: '#fff' }}
scale="sm"
onClick={() => onUserInput(Field.LIQUIDITY_PERCENT, '25')}
>
25%
</Button>
<Button
variant="tertiary"
style={{ background: '#04bbfb', color: '#fff' }}
scale="sm"
onClick={() => onUserInput(Field.LIQUIDITY_PERCENT, '50')}
>
50%
</Button>
<Button
variant="tertiary"
style={{ background: '#04bbfb', color: '#fff' }}
scale="sm"
onClick={() => onUserInput(Field.LIQUIDITY_PERCENT, '75')}
>
75%
</Button>
<Button
variant="tertiary"
style={{ background: '#04bbfb', color: '#fff' }}
scale="sm"
onClick={() => onUserInput(Field.LIQUIDITY_PERCENT, '100')}
>
Expand Down Expand Up @@ -636,14 +644,14 @@ export default function RemoveLiquidity({
</Flex>
</div>
)}
<div style={{ position: 'relative' }}>
<div style={{ position: 'relative', paddingTop: '20px' }}>
{!account ? (
<ConnectWalletButton />
) : (
<RowBetween>
<Button
onClick={onAttemptToApprove}
variant={approval === ApprovalState.APPROVED || signatureData !== null ? 'success' : 'primary'}
style={{ background: '#04bbfb', width: '50%' }}
disabled={approval !== ApprovalState.NOT_APPROVED || signatureData !== null}
mr="8px"
>
Expand All @@ -660,11 +668,7 @@ export default function RemoveLiquidity({
setShowConfirm(true)
}}
disabled={!isValid || (signatureData === null && approval !== ApprovalState.APPROVED)}
variant={
!isValid && !!parsedAmounts[Field.CURRENCY_A] && !!parsedAmounts[Field.CURRENCY_B]
? 'danger'
: 'primary'
}
style={{ background: '#05195a', width: '50%' }}
>
{error || 'Remove'}
</Button>
Expand Down
3 changes: 2 additions & 1 deletion src/style/Global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const GlobalStyle = createGlobalStyle`
color: #04bbfb;
}
div[color="text"] {
div[color="text"], p[color="text"] {
color: #05195a;
}
Expand Down

0 comments on commit acededc

Please sign in to comment.