Skip to content
Permalink
Browse files

feat(autopay): add autopay link into wallet menu

  • Loading branch information...
mrfelton committed Mar 13, 2019
1 parent ee70c0a commit 1962074e796cb564832ea2f3bf9a77bb97492b54
Showing with 10 additions and 0 deletions.
  1. +5 −0 app/components/Settings/Menu/Menu.js
  2. +1 −0 app/components/Settings/Menu/messages.js
  3. +4 −0 app/containers/ModalStack.js
@@ -31,6 +31,11 @@ const SettingsMenu = ({ history, setActiveSubMenu, openModal }) => (
onClick={() => openModal('CHANNELS')}
/>

<MenuItem
item={{ key: 'Autopay', name: <FormattedMessage {...messages.autopay} /> }}
onClick={() => openModal('AUTOPAY')}
/>

<MenuItem
item={{ key: 'logout', name: <FormattedMessage {...messages.logout} /> }}
onClick={() => history.push('/logout')}
@@ -2,6 +2,7 @@ import { defineMessages } from 'react-intl'

/* eslint-disable max-len */
export default defineMessages({
autopay: 'Autopay',
fiat: 'Fiat Currency',
locale: 'Language',
theme: 'Theme',
@@ -6,6 +6,7 @@ import styled from 'styled-components'
import { closeModal, modalSelectors } from 'reducers/modal'
import { Modal, ModalOverlayStyles } from 'components/UI'
import { useOnKeydown } from 'hooks'
import Autopay from 'containers/Autopay'
import Pay from 'containers/Pay'
import Request from 'containers/Request'
import Channels from 'containers/Channels'
@@ -21,6 +22,9 @@ const Container = styled(animated.div)`

const ModalContent = ({ type, closeModal }) => {
switch (type) {
case 'AUTOPAY':
return <Autopay mx={-4} />

case 'PAY_FORM':
return <Pay mx="auto" width={9 / 16} />

0 comments on commit 1962074

Please sign in to comment.
You can’t perform that action at this time.