diff --git a/app/src/App.tsx b/app/src/App.tsx index 92f8f5022..7e8aaaedf 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -7,13 +7,13 @@ import Web3Provider from 'web3-react' import 'react-datepicker/dist/react-datepicker.css' import 'sanitize.css' import { Main } from './components/main' -import { ContentWrapper, ModalTitle } from './components/modal/common_styled' +import { ContentWrapper } from './components/modal/common_styled' import { ConnectionModalNavigation, SettingsModalWrapper } from './components/modal/modal_your_connection' import SettingsViewContainer from './components/settings/settings_view' import { ConnectedWeb3 } from './contexts' import { ApolloProviderWrapper } from './contexts/Apollo' import balanceReducer from './store/reducer' -import { ThemeProvider, theme } from './theme' +import { TYPE, ThemeProvider, theme } from './theme' import { GlobalStyle } from './theme/global_style' import connectors from './util/connectors' import { getInfuraUrl, networkIds } from './util/networks' @@ -59,9 +59,7 @@ const App: React.FC = (props: any) => { > - - Settings - + Settings diff --git a/app/src/components/modal/common_styled/index.tsx b/app/src/components/modal/common_styled/index.tsx index 91694cd50..36f211a42 100644 --- a/app/src/components/modal/common_styled/index.tsx +++ b/app/src/components/modal/common_styled/index.tsx @@ -1,5 +1,7 @@ import styled from 'styled-components' +import { TYPE } from '../../../theme' + export const ContentWrapper = styled.div` align-items: center; display: flex; @@ -23,16 +25,6 @@ export const ModalNavigationLeft = styled.div` align-items: center; ` -export const ModalTitle = styled.p` - font-size: ${props => props.theme.switchNetworkModal.primaryFontSize}; - color: ${props => props.theme.text1}; - font-weight: ${props => props.theme.textfield.fontWeight}; - margin: 0; - line-height: 19px; - letter-spacing: 0.2px; - margin-top: 2px; -` - export const ModalCard = styled.div` width: 100%; @@ -68,16 +60,8 @@ export const BalanceItemSide = styled.div` align-items: center; ` -export const BalanceItemTitle = styled.p<{ notSelected?: boolean }>` - font-size: ${props => props.theme.fonts.defaultSize}; - color: ${props => (props.notSelected ? props.theme.text2 : props.theme.text1)}; - margin: 0; -` - -export const BalanceItemBalance = styled.p` - font-size: ${props => props.theme.fonts.defaultSize}; - color: ${props => props.theme.text2}; - margin: 0; +export const BalanceItemTitle = styled(TYPE.bodyRegular)<{ selected?: boolean }>` + color: ${props => (props.selected ? props.theme.text1 : props.theme.text2)}; ` export const BalanceItem = styled.div<{ hover?: boolean }>` @@ -86,17 +70,15 @@ export const BalanceItem = styled.div<{ hover?: boolean }>` justify-content: space-between; width: 100%; - &:not(:first-child){ + &:not(:first-child) { margin-top: 14px; } &:hover { - ${BalanceItemSide}{ ${BalanceItemTitle}{ - color: ${props => props.theme.text1}; !important; + color: ${props => props.theme.text1}; !important; } - } } ` diff --git a/app/src/components/modal/modal_deposit_withdraw/index.tsx b/app/src/components/modal/modal_deposit_withdraw/index.tsx index b572df932..bbe26dc9f 100644 --- a/app/src/components/modal/modal_deposit_withdraw/index.tsx +++ b/app/src/components/modal/modal_deposit_withdraw/index.tsx @@ -9,6 +9,7 @@ import styled, { withTheme } from 'styled-components' import { DAI_TO_XDAI_TOKEN_BRIDGE_ADDRESS, OMNI_BRIDGE_MAINNET_ADDRESS } from '../../../common/constants' import { useConnectedWeb3Context } from '../../../contexts' import { ERC20Service, XdaiService } from '../../../services' +import { TYPE } from '../../../theme' import { bridgeTokensList, getNativeAsset, getToken, networkIds } from '../../../util/networks' import { getImageUrl } from '../../../util/token' import { waitForConfirmations } from '../../../util/tools' @@ -25,7 +26,6 @@ import { IconInfo } from '../../common/icons/IconInfo' import { Image } from '../../market/common_sections/message_text/token_item' import { BalanceItem, - BalanceItemBalance, BalanceItemSide, BalanceItemTitle, BalanceItems, @@ -34,7 +34,6 @@ import { ModalCard, ModalNavigation, ModalNavigationLeft, - ModalTitle, } from '../common_styled' import { ModalTransactionWrapper } from '../modal_transaction' @@ -53,16 +52,13 @@ const InputInfo = styled.div` line-height: 20px; letter-spacing: 0.2px; ` -const WalletText = styled.div` - margin-bottom: 14px; - color: ${props => props.theme.text2}; - line-height: 16.41px; - letter-spacing: 0.2px; -` const DepositWithdrawButton = styled(Button)` flex: 1; ` +const BalanceItemBalance = styled(TYPE.bodyRegular)` + color: ${props => props.theme.text2}; +` const ApproveButton = styled(ButtonStateful)` flex: 1; border-color: ${props => props.theme.primary4}; @@ -73,6 +69,10 @@ const ApproveButton = styled(ButtonStateful)` } ` +const ModalSubtitle = styled(TYPE.bodyRegular)` + color: ${props => props.theme.text2}; +` + const ExchangeDataItem = styled.div` display: flex; justify-content: space-between; @@ -257,7 +257,6 @@ export const ModalDepositWithdraw = (props: Props) => { return ( { setCurrencySelected(item) @@ -266,9 +265,7 @@ export const ModalDepositWithdraw = (props: Props) => { - - {name ? name : symbol.toLowerCase()} - + {name ? name : symbol.toLowerCase()} @@ -304,7 +301,9 @@ export const ModalDepositWithdraw = (props: Props) => { setAmountToDisplay('') }} /> - {exchangeType} Asset + + {exchangeType} Asset + { - Wallet + Wallet {bridgeItems} @@ -344,17 +343,19 @@ export const ModalDepositWithdraw = (props: Props) => { {exchangeType === ExchangeType.withdraw && currencySelected !== 'dai' && xDaiBalance?.isZero() ? ( -
Fund your Omen Account with Dai to proceed with the withdrawal.
+ + Fund your Omen Account with Dai to proceed with the withdrawal. +
) : ( <> - Min amount - + Min amount + {currencySelected === 'dai' ? `${bigNumberToString(minDaiBridgeExchange, decimals, 2)} DAI` : `${bigNumberToString(minOmniBridgeExchange, decimals, 3)} ${symbol}`} - +
@@ -389,12 +390,12 @@ export const ModalDepositWithdraw = (props: Props) => { - Total - + Total + {currencySelected !== 'dai' && exchangeType === ExchangeType.withdraw ? `${bigNumberToString(displayFundAmount.sub(displayFundAmount.div(1000)), decimals, 3)} ${symbol}` : `${bigNumberToString(displayFundAmount, decimals)} ${symbol === 'xDAI' ? 'DAI' : symbol}`} - + )}