From d2f7aa2cf1bbd3a9248ffec0b9cb1f2b39ac3aaa Mon Sep 17 00:00:00 2001 From: unleashit Date: Fri, 2 Feb 2024 21:05:57 -0800 Subject: [PATCH] fix(form): rename text to headerText in BaseFormProps --- packages/forgotPassword/src/forgotPassword.tsx | 4 ++-- packages/forgotPassword/src/forgotPasswordReset.tsx | 4 ++-- packages/login/src/login.tsx | 4 ++-- packages/quickForm/src/quickForm.tsx | 4 ++-- packages/signup/src/signup.tsx | 4 ++-- shared/common/src/types.ts | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/forgotPassword/src/forgotPassword.tsx b/packages/forgotPassword/src/forgotPassword.tsx index 1765d10..b0e40f1 100644 --- a/packages/forgotPassword/src/forgotPassword.tsx +++ b/packages/forgotPassword/src/forgotPassword.tsx @@ -42,7 +42,7 @@ const varNames = [...varNamesCommonForm] as const; export const ForgotPassword = ({ handler, onSuccess, - title = 'Forgot Password', + headerText = 'Forgot Password', header: Header = DefaultForgotPasswordHeader, loader: Loader = DefaultLoader, childrenPosition = 'bottom', @@ -132,7 +132,7 @@ export const ForgotPassword = ({ ) : ( <> - {Header &&
} + {Header &&
} {errors.root && !toast && (
{errors.root.message} diff --git a/packages/forgotPassword/src/forgotPasswordReset.tsx b/packages/forgotPassword/src/forgotPasswordReset.tsx index acb7e2e..3f4c32a 100644 --- a/packages/forgotPassword/src/forgotPasswordReset.tsx +++ b/packages/forgotPassword/src/forgotPasswordReset.tsx @@ -39,7 +39,7 @@ const varNames = [...varNamesCommonForm] as const; export const ForgotPasswordReset = ({ handler, onSuccess, - title = 'Reset Password', + headerText = 'Reset Password', header: Header = DefaultForgotPasswordResetHeader, loader: Loader = DefaultLoader, childrenPosition = 'bottom', @@ -125,7 +125,7 @@ export const ForgotPasswordReset = ({ ) : ( <> - {Header &&
} + {Header &&
} {errors.root && !toast && (
{errors.root.message} diff --git a/packages/login/src/login.tsx b/packages/login/src/login.tsx index be8ddfc..aecdedf 100644 --- a/packages/login/src/login.tsx +++ b/packages/login/src/login.tsx @@ -46,7 +46,7 @@ const varNames = [ export const Login = ({ handler, onSuccess, - title = 'Login', + headerText = 'Login', signupUrl = '/signup', header: Header = DefaultLoginHeader, loader: Loader = DefaultLoader, @@ -141,7 +141,7 @@ export const Login = ({ <> {Header && (
) : ( <> - {!!Header &&
} + {!!Header &&
} {errors.root && !toast && (
{errors.root.message} diff --git a/packages/signup/src/signup.tsx b/packages/signup/src/signup.tsx index 80b7fbb..1213c3f 100644 --- a/packages/signup/src/signup.tsx +++ b/packages/signup/src/signup.tsx @@ -46,7 +46,7 @@ const varNames = [ export const Signup = ({ handler, onSuccess, - title = 'Signup', + headerText = 'Signup', header: Header = DefaultSignupHeader, loader: Loader = DefaultLoader, orLine = true, @@ -143,7 +143,7 @@ export const Signup = ({ <> {Header && (
>( resp: ServerResponse, Meta>, ) => void; - title?: string; + headerText?: string; header?: React.FC | false | null; footer?: React.FC; loader?: React.FC;