add content to confirmation step

This commit is contained in:
Eric Rosenbaum 2021-07-19 11:17:52 -04:00
parent d4253bdd2e
commit 4d438d0cd6
2 changed files with 9 additions and 2 deletions

View file

@ -94,6 +94,8 @@
"studio.transferOwnership.noLongerEdit": "You will no longer be able to edit the studio",
"studio.transferOwnership.noLongerDelete": "You will no longer be able to delete the studio",
"studio.transferOwnership.whichManager": "Which manager do you want to give ownership to?",
"studio.transferOwnership.confirmWithPassword": "To confirm changing studio ownership, please enter your password.",
"studio.transferOwnership.forgotPassword": "Forgot password?",
"studio.remove": "Remove",
"studio.promote": "Promote",

View file

@ -43,10 +43,12 @@ const TransferOwnershipConfirmation = ({
isCreator={true}
/>
</div>
<h3>
<FormattedMessage id="studio.transferOwnership.confirmWithPassword" />
</h3>
<Form
onSubmit={formData => {
console.log(formData.password);
onTransferOwnership(newOwnerUsername, selectedId);
onTransferOwnership(/* formData.password, */newOwnerUsername, selectedId);
}}
>
<Input
@ -55,6 +57,9 @@ const TransferOwnershipConfirmation = ({
name="password"
type="password"
/>
<a href="/accounts/password_reset/">
<FormattedMessage id="studio.transferOwnership.forgotPassword" />
</a>
<div
className="transfer-ownership-button-row"
>