-
- Wallet Setup
-
-
-
- Import Seed
-
-
-
-
{
- setAccountsFormValues({
- type: AccountsFormType.ImportSeed,
- seed,
- });
- navigate(
- `/accounts/protect-account?${new URLSearchParams({
- accountsFormType: AccountsFormType.ImportSeed,
- }).toString()}`,
- );
- }}
- />
+
+
-
+
);
}
diff --git a/apps/wallet/src/ui/app/shared/forms/FormField.tsx b/apps/wallet/src/ui/app/shared/forms/FormField.tsx
index 60bee54174d..a979a7fbee0 100644
--- a/apps/wallet/src/ui/app/shared/forms/FormField.tsx
+++ b/apps/wallet/src/ui/app/shared/forms/FormField.tsx
@@ -3,11 +3,7 @@
// SPDX-License-Identifier: Apache-2.0
import { type ReactNode } from 'react';
-import { useFormContext } from 'react-hook-form';
-
import { FormLabel } from './FormLabel';
-import { InfoBox, InfoBoxStyle, InfoBoxType } from '@iota/apps-ui-kit';
-import { Exclamation } from '@iota/ui-icons';
interface FormFieldProps {
name: string;
@@ -15,21 +11,10 @@ interface FormFieldProps {
children: ReactNode;
}
-export function FormField({ children, name, label }: FormFieldProps) {
- const { getFieldState, formState } = useFormContext();
- const state = getFieldState(name, formState);
-
+export function FormField({ children, label }: FormFieldProps) {
return (
{label ? {children} : children}
- {state.error && (
- }
- style={InfoBoxStyle.Elevated}
- />
- )}
);
}
diff --git a/apps/wallet/src/ui/app/shared/forms/TextAreaField.tsx b/apps/wallet/src/ui/app/shared/forms/TextAreaField.tsx
index 0cd70a24700..a6a15be1035 100644
--- a/apps/wallet/src/ui/app/shared/forms/TextAreaField.tsx
+++ b/apps/wallet/src/ui/app/shared/forms/TextAreaField.tsx
@@ -4,8 +4,8 @@
import { forwardRef, type ComponentProps, type ReactNode } from 'react';
-import { TextArea } from '@iota/apps-ui-kit';
import FormField from './FormField';
+import { TextArea } from '@iota/apps-ui-kit';
type TextAreaFieldProps = {
name: string;