add submitButtonProps prop to VerifyMasterPasswordForm
This commit is contained in:
parent
c27bd720bb
commit
7c12826d9c
|
@ -6,7 +6,7 @@ import SingleInputForm, {
|
||||||
import { logError } from 'utils/sentry';
|
import { logError } from 'utils/sentry';
|
||||||
import { CustomError } from 'utils/error';
|
import { CustomError } from 'utils/error';
|
||||||
|
|
||||||
import { Input } from '@mui/material';
|
import { ButtonProps, Input } from '@mui/material';
|
||||||
import { KeyAttributes, User } from 'types/user';
|
import { KeyAttributes, User } from 'types/user';
|
||||||
import ComlinkCryptoWorker from 'utils/comlink/ComlinkCryptoWorker';
|
import ComlinkCryptoWorker from 'utils/comlink/ComlinkCryptoWorker';
|
||||||
import { t } from 'i18next';
|
import { t } from 'i18next';
|
||||||
|
@ -16,6 +16,7 @@ export interface VerifyMasterPasswordFormProps {
|
||||||
keyAttributes: KeyAttributes;
|
keyAttributes: KeyAttributes;
|
||||||
callback: (key: string, passphrase: string) => void;
|
callback: (key: string, passphrase: string) => void;
|
||||||
buttonText: string;
|
buttonText: string;
|
||||||
|
submitButtonProps?: ButtonProps;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function VerifyMasterPasswordForm({
|
export default function VerifyMasterPasswordForm({
|
||||||
|
@ -23,6 +24,7 @@ export default function VerifyMasterPasswordForm({
|
||||||
keyAttributes,
|
keyAttributes,
|
||||||
callback,
|
callback,
|
||||||
buttonText,
|
buttonText,
|
||||||
|
submitButtonProps,
|
||||||
}: VerifyMasterPasswordFormProps) {
|
}: VerifyMasterPasswordFormProps) {
|
||||||
const verifyPassphrase: SingleInputFormProps['callback'] = async (
|
const verifyPassphrase: SingleInputFormProps['callback'] = async (
|
||||||
passphrase,
|
passphrase,
|
||||||
|
@ -72,6 +74,7 @@ export default function VerifyMasterPasswordForm({
|
||||||
callback={verifyPassphrase}
|
callback={verifyPassphrase}
|
||||||
placeholder={t('RETURN_PASSPHRASE_HINT')}
|
placeholder={t('RETURN_PASSPHRASE_HINT')}
|
||||||
buttonText={buttonText}
|
buttonText={buttonText}
|
||||||
|
submitButtonProps={submitButtonProps}
|
||||||
hiddenPreInput={
|
hiddenPreInput={
|
||||||
<Input
|
<Input
|
||||||
id="email"
|
id="email"
|
||||||
|
|
Loading…
Reference in a new issue