1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Part of #18896 for file ui\components\app\create-new-vault\create-new-vault.js (#20025)

* Part of #18896 for file ui\components\app\create-new-vault\create-new-vault.js

* Update create-new-vault.js

* Adding submit attribute

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
This commit is contained in:
Harsh Shukla 2023-07-22 03:44:26 +05:30 committed by GitHub
parent b4668fa402
commit 02b45aa648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,8 @@ import React, { useCallback, useState } from 'react';
import PropTypes from 'prop-types';
import { useI18nContext } from '../../../hooks/useI18nContext';
import TextField from '../../ui/text-field';
import Button from '../../ui/button';
import CheckBox from '../../ui/check-box';
import { Text } from '../../component-library';
import { BUTTON_VARIANT, Button, Text } from '../../component-library';
import SrpInput from '../srp-input';
import { PASSWORD_MIN_LENGTH } from '../../../helpers/constants/common';
@ -144,9 +143,9 @@ export default function CreateNewVault({
<Button
data-testid="create-new-vault-submit-button"
className="create-new-vault__submit-button"
type="primary"
submit
variant={BUTTON_VARIANT.PRIMARY}
disabled={!isValid}
type="submit"
>
{submitText}
</Button>