Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
"@ubeswap/sdk": "^2.1.2",
"@uniswap/default-token-list": "^2.0.0",
"ajv-formats": "^2.1.1",
"axios": "^1.2.1",
"eventemitter3": "^4.0.7",
"graphql": "^15.6.1",
"hamburger-react": "^2.4.1",
Expand All @@ -150,7 +151,9 @@
"rc-drawer": "^4.4.3",
"react-is": "^17.0.2",
"react-router": "^5.2.0",
"react-ts-tradingview-widgets": "^1.0.14",
"rebass": "^4.0.7",
"recharts": "^2.2.0",
"redux": "^4.2.0",
"rlp": "^2.2.6",
"tiny-invariant": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/swap/styleds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styled, { css } from 'styled-components'
import { AutoColumn } from '../Column'

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

Expand Down
6 changes: 3 additions & 3 deletions src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { OpenClaimAddressModalAndRedirectToSwap, RedirectPathToSwapOnly, Redirec
const AppWrapper = styled.div`
display: flex;
flex-flow: column;
align-items: flex-start;
/* align-items: flex-start; */
overflow-x: hidden;
min-height: 100vh;
`
Expand All @@ -49,9 +49,9 @@ const HeaderWrapper = styled.div`
const BodyWrapper = styled.div`
display: flex;
flex-direction: column;
width: 100%;
/* width: 100%; */
padding-top: 40px;
align-items: center;
/* align-items: center; */
flex: 1;
overflow-y: auto;
overflow-x: hidden;
Expand Down
6 changes: 3 additions & 3 deletions src/pages/AppBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import styled from 'styled-components'

export const BodyWrapper = styled.div`
position: relative;
max-width: 420px;
width: 100%;
/* max-width: 420px; */
/* width: 100%; */
background: ${({ theme }) => theme.bg1};
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),
0px 24px 32px rgba(0, 0, 0, 0.01);
border-radius: 30px;
/* padding: 1rem; */
padding: 1rem;
`

/**
Expand Down
434 changes: 220 additions & 214 deletions src/pages/LimitOrder/index.tsx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/state/limit/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export enum Field {
PRICE = 'PRICE',
}

export const selectCurrency = createAction<{ field: Field; currencyId: string }>('limit/selectCurrency')
export const selectCurrency = createAction<{ field: Field; currencyId: string; symbol: string }>('limit/selectCurrency')
export const switchCurrencies = createAction<void>('limit/switchCurrencies')
export const typeInput = createAction<{ field: Field; typedValue: string }>('limit/typeInput')
export const setBuying = createAction<{ buying: boolean }>('limit/setBuying')
Expand Down
2 changes: 2 additions & 0 deletions src/state/limit/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ export function useLimitOrderActionHandlers(): {
const dispatch = useDispatch<AppDispatch>()
const onCurrencySelection = useCallback(
(field: Field, currency: Token) => {
console.log(field, currency, 'field currency')
dispatch(
selectCurrency({
field,
currencyId: currency instanceof Token ? currency.address : '',
symbol: currency?.symbol ?? '',
})
)
},
Expand Down
Loading