From a5f6fa66acb64924e8192c458994d6a85fe538ab Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 25 Mar 2021 14:44:02 -0500 Subject: [PATCH] Remove LoginModal for now --- .../features/ui/components/login_modal.js | 66 ------------------- .../features/ui/components/modal_root.js | 2 - 2 files changed, 68 deletions(-) delete mode 100644 app/soapbox/features/ui/components/login_modal.js diff --git a/app/soapbox/features/ui/components/login_modal.js b/app/soapbox/features/ui/components/login_modal.js deleted file mode 100644 index 3f3e7a1fa..000000000 --- a/app/soapbox/features/ui/components/login_modal.js +++ /dev/null @@ -1,66 +0,0 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'; -import { Link } from 'react-router-dom'; -import ImmutablePureComponent from 'react-immutable-pure-component'; -import PropTypes from 'prop-types'; -import Button from '../../../components/button'; -import { SimpleForm, FieldsGroup, Checkbox } from 'soapbox/features/forms'; - -const messages = defineMessages({ - username: { id: 'login.fields.username_placeholder', defaultMessage: 'Username' }, - password: { id: 'login.fields.password_placeholder', defaultMessage: 'Password' }, -}); - -export default @connect() -@injectIntl -class LoginModal extends ImmutablePureComponent { - - render() { - const { intl, isLoading, handleSubmit } = this.props; - - return ( -
-
-
-
-
- -
-
- -
-

- - - -

-
-
-
- -
-
-
- ); - } - -} diff --git a/app/soapbox/features/ui/components/modal_root.js b/app/soapbox/features/ui/components/modal_root.js index 4f27024c1..b6cfa5737 100644 --- a/app/soapbox/features/ui/components/modal_root.js +++ b/app/soapbox/features/ui/components/modal_root.js @@ -13,7 +13,6 @@ import FocalPointModal from './focal_point_modal'; import HotkeysModal from './hotkeys_modal'; import ComposeModal from './compose_modal'; import UnauthorizedModal from './unauthorized_modal'; -import LoginModal from './login_modal'; import { MuteModal, @@ -38,7 +37,6 @@ const MODAL_COMPONENTS = { 'HOTKEYS': () => Promise.resolve({ default: HotkeysModal }), 'COMPOSE': () => Promise.resolve({ default: ComposeModal }), 'UNAUTHORIZED': () => Promise.resolve({ default: UnauthorizedModal }), - 'LOGIN': () => Promise.resolve({ default: LoginModal }), }; export default class ModalRoot extends React.PureComponent {