diff --git a/src/components/base/Modal/ModalBody.js b/src/components/base/Modal/ModalBody.js index bf437430..f6056f2a 100644 --- a/src/components/base/Modal/ModalBody.js +++ b/src/components/base/Modal/ModalBody.js @@ -55,13 +55,13 @@ class ModalBody extends PureComponent { } const CloseContainer = styled(Box).attrs({ - p: 2, + p: 4, color: 'fog', })` cursor: pointer; position: absolute; - top: 25px; - right: 10px; + top: 0; + right: 0; z-index: 1; &:hover { diff --git a/src/components/modals/PrevButton.js b/src/components/modals/PrevButton.js deleted file mode 100644 index 720f7954..00000000 --- a/src/components/modals/PrevButton.js +++ /dev/null @@ -1,37 +0,0 @@ -// @flow - -import React from 'react' -import { translate } from 'react-i18next' -import styled from 'styled-components' - -import type { T } from 'types/common' - -import Button from 'components/base/Button' -import Box from 'components/base/Box' - -import IconAngleLeft from 'icons/AngleLeft' - -const Wrapper = styled(Button).attrs({ - fontSize: 4, - ml: 4, -})` - left: 0; - margin-top: -18px; - position: absolute; - top: 50%; -` - -type Props = { - t: T, -} - -const PrevButton = ({ t, ...props }: Props) => ( - - - - {t('app:common.back')} - - -) - -export default translate()(PrevButton) diff --git a/src/components/modals/Receive/index.js b/src/components/modals/Receive/index.js index f636cc53..bf8e0574 100644 --- a/src/components/modals/Receive/index.js +++ b/src/components/modals/Receive/index.js @@ -17,7 +17,6 @@ import Box from 'components/base/Box' import Breadcrumb from 'components/Breadcrumb' import Button from 'components/base/Button' import Modal, { ModalBody, ModalTitle, ModalContent, ModalFooter } from 'components/base/Modal' -import PrevButton from 'components/modals/PrevButton' import StepConnectDevice from 'components/modals/StepConnectDevice' import StepAccount from './01-step-account' @@ -318,8 +317,7 @@ class ReceiveModal extends PureComponent { {account && } - - {canPrev && } + {t('app:receive.title')} diff --git a/src/components/modals/Send/SendModalBody.js b/src/components/modals/Send/SendModalBody.js index 35f7d962..b4205f84 100644 --- a/src/components/modals/Send/SendModalBody.js +++ b/src/components/modals/Send/SendModalBody.js @@ -20,7 +20,6 @@ import PollCounterValuesOnMount from 'components/PollCounterValuesOnMount' import Breadcrumb from 'components/Breadcrumb' import { ModalBody, ModalTitle, ModalContent } from 'components/base/Modal' -import PrevButton from 'components/modals/PrevButton' import StepConnectDevice from 'components/modals/StepConnectDevice' import ChildSwitch from 'components/base/ChildSwitch' import SyncSkipUnderPriority from 'components/SyncSkipUnderPriority' @@ -279,8 +278,7 @@ class SendModalBody extends PureComponent> { {account && } - - {canPrev && } + {t('app:send.title')}