1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

remove reset action from unlock page

This commit is contained in:
Matthias Kretschmann 2023-03-17 12:54:35 +00:00
parent 34cf4de1b1
commit 0ef83b0334
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -28,10 +28,6 @@ export default class UnlockPage extends Component {
* If isUnlocked is true will redirect to most recent route in history
*/
isUnlocked: PropTypes.bool,
/**
* onClick handler for "Forgot password?" link
*/
onRestore: PropTypes.func,
/**
* onSubmit handler when form is submitted
*/
@ -151,7 +147,6 @@ export default class UnlockPage extends Component {
render() {
const { password, error } = this.state;
const { t } = this.context;
const { onRestore } = this.props;
return (
<div className="unlock-page__container">
@ -184,16 +179,6 @@ export default class UnlockPage extends Component {
/>
</form>
{this.renderSubmitButton()}
<div className="unlock-page__links">
<Button
type="link"
key="import-account"
className="unlock-page__link"
onClick={() => onRestore()}
>
{t('forgotPassword')}
</Button>
</div>
</div>
</div>
);