mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 17:45:52 -05:00
add password field
This commit is contained in:
parent
09822abfc4
commit
236394550b
1 changed files with 21 additions and 1 deletions
|
@ -3,6 +3,9 @@ import PropTypes from 'prop-types';
|
|||
import {connect} from 'react-redux';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import {Formik} from 'formik';
|
||||
import FormikInput from '../../../components/formik-forms/formik-input.jsx';
|
||||
|
||||
import ModalInnerContent from '../../../components/modal/base/modal-inner-content.jsx';
|
||||
|
||||
import TransferOwnershipTile from './transfer-ownership-tile.jsx';
|
||||
|
@ -41,6 +44,23 @@ const TransferOwnershipConfirmation = ({
|
|||
isCreator={true}
|
||||
/>
|
||||
</div>
|
||||
<Formik
|
||||
initialValues={{
|
||||
password: ''
|
||||
}}
|
||||
>
|
||||
<FormikInput
|
||||
autoCapitalize="off"
|
||||
autoComplete="off"
|
||||
autoCorrect="off"
|
||||
className='join-flow-input'
|
||||
id="password"
|
||||
name="password"
|
||||
placeholder=""
|
||||
spellCheck={false}
|
||||
type="password"
|
||||
/>
|
||||
</Formik>
|
||||
<div
|
||||
className="transfer-ownership-button-row"
|
||||
>
|
||||
|
@ -52,7 +72,7 @@ const TransferOwnershipConfirmation = ({
|
|||
</button>
|
||||
<button
|
||||
className="button"
|
||||
onClick={() => onTransferOwnership(newOwnerUsername)}
|
||||
onClick={() => onTransferOwnership(newOwnerUsername, selectedId)}
|
||||
>
|
||||
<FormattedMessage id="studio.confirm" />
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue