From c2b078335e7379be409f8a9b4ce8856d4d089870 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Wed, 1 Nov 2023 04:24:38 +0530 Subject: [PATCH] fix: improve the early adopters plan input section (#609) --- apps/marketing/src/components/(marketing)/widget.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/marketing/src/components/(marketing)/widget.tsx b/apps/marketing/src/components/(marketing)/widget.tsx index 9f3e6068d..71dc20d99 100644 --- a/apps/marketing/src/components/(marketing)/widget.tsx +++ b/apps/marketing/src/components/(marketing)/widget.tsx @@ -226,7 +226,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { type="button" className="bg-primary h-full w-14 rounded" disabled={!field.value || !!errors.email?.message} - onClick={() => onNextStepClick()} + onClick={() => step === 'EMAIL' && onNextStepClick()} > Next @@ -303,7 +303,10 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => {
-

{stepsRemaining} step(s) until signed

+

+ {isValid ? 'Ready for Signing' : `${stepsRemaining} step(s) until signed`} +

+

Minimise contract

@@ -313,6 +316,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { 'w-1/3': stepsRemaining === 3, 'w-2/3': stepsRemaining === 2, 'w-11/12': stepsRemaining === 1, + 'w-full': isValid, })} />