diff --git a/ui/constants/modal_types.js b/ui/constants/modal_types.js index 1746fda81..706a55944 100644 --- a/ui/constants/modal_types.js +++ b/ui/constants/modal_types.js @@ -18,7 +18,6 @@ export const TRANSACTION_FAILED = 'transaction_failed'; export const REWARD_GENERATED_CODE = 'reward_generated_code'; export const AFFIRM_PURCHASE = 'affirm_purchase'; export const CONFIRM_CLAIM_REVOKE = 'confirm_claim_revoke'; -export const FIRST_SUBSCRIPTION = 'firstSubscription'; export const SEND_TIP = 'send_tip'; export const CONFIRM_SEND_TIP = 'confirm_send_tip'; export const SOCIAL_SHARE = 'social_share'; diff --git a/ui/modal/modalFirstSubscription/index.js b/ui/modal/modalFirstSubscription/index.js deleted file mode 100644 index 4bd4fc514..000000000 --- a/ui/modal/modalFirstSubscription/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import { connect } from 'react-redux'; -import { doHideModal } from 'redux/actions/app'; -import { selectAccessToken, selectUser } from 'redux/selectors/user'; -import { withRouter } from 'react-router'; - -import ModalFirstSubscription from './view'; - -const select = state => ({ - accessToken: selectAccessToken(state), - user: selectUser(state), -}); - -const perform = dispatch => () => ({ - closeModal: () => dispatch(doHideModal()), -}); - -export default withRouter(connect(select, perform)(ModalFirstSubscription)); diff --git a/ui/modal/modalFirstSubscription/view.jsx b/ui/modal/modalFirstSubscription/view.jsx deleted file mode 100644 index 1e73123f1..000000000 --- a/ui/modal/modalFirstSubscription/view.jsx +++ /dev/null @@ -1,73 +0,0 @@ -// @flow -import { SITE_NAME } from 'config'; -import React from 'react'; -import { Modal } from 'modal/modal'; -import Button from 'component/button'; -import * as PAGES from 'constants/pages'; -import Card from 'component/common/card'; - -type Props = { - closeModal: () => void, - accessToken: string, - user: any, - doAuth: () => void, - history: { push: string => void }, - location: UrlLocation, -}; - -const ModalFirstSubscription = (props: Props) => { - const { - closeModal, - accessToken, - user, - history, - location: { pathname }, - } = props; - - const title = __('You Followed Your First Channel!'); - - return ( - - - {__('Awesome! You just followed your first channel.')}{' '} - {user && user.primary_email - ? __('You will receive notifications related to new content.') - : __('Log in with %SITE_NAME% to receive notifications about new content.', { SITE_NAME })} - - } - actions={ -
-
- } - /> -
- ); -}; - -export default ModalFirstSubscription; diff --git a/ui/modal/modalRouter/view.jsx b/ui/modal/modalRouter/view.jsx index 7ec6f9d7f..2bb9f4ba5 100644 --- a/ui/modal/modalRouter/view.jsx +++ b/ui/modal/modalRouter/view.jsx @@ -41,9 +41,6 @@ const ModalFileSelection = lazyImport(() => ); const ModalFileTimeout = lazyImport(() => import('modal/modalFileTimeout' /* webpackChunkName: "modalFileTimeout" */)); const ModalFirstReward = lazyImport(() => import('modal/modalFirstReward' /* webpackChunkName: "modalFirstReward" */)); -const ModalFirstSubscription = lazyImport(() => - import('modal/modalFirstSubscription' /* webpackChunkName: "modalFirstSubscription" */) -); const ModalImageUpload = lazyImport(() => import('modal/modalImageUpload' /* webpackChunkName: "modalImageUpload" */)); const ModalMassTipsUnlock = lazyImport(() => import('modal/modalMassTipUnlock' /* webpackChunkName: "modalMassTipUnlock" */) @@ -124,8 +121,6 @@ function getModal(id) { return ModalRevokeClaim; case MODALS.PHONE_COLLECTION: return ModalPhoneCollection; - case MODALS.FIRST_SUBSCRIPTION: - return ModalFirstSubscription; case MODALS.SEND_TIP: return ModalSendTip; case MODALS.SOCIAL_SHARE: