From 40d2990565b78b5e1451b7b91b59070e3f8fa853 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Wed, 7 Jun 2023 01:56:58 +0530 Subject: [PATCH] fix: onboarding ui fix (#1225) --- apps/app/components/onboarding/user-details.tsx | 9 +++++---- apps/app/components/onboarding/workspace.tsx | 4 ++-- .../workspace/create-workspace-form.tsx | 16 ++++++++-------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/apps/app/components/onboarding/user-details.tsx b/apps/app/components/onboarding/user-details.tsx index f4f94117d..63df0d968 100644 --- a/apps/app/components/onboarding/user-details.tsx +++ b/apps/app/components/onboarding/user-details.tsx @@ -76,8 +76,8 @@ export const UserDetails: React.FC = ({ user, setStep, setUserRole }) =>
-
- First name +
+ First name = ({ user, setStep, setUserRole }) => error={errors.first_name} />
-
- Last name +
+ Last name = ({ user, setStep, setUserRole }) => )} /> + {errors.role && {errors.role.message}}
diff --git a/apps/app/components/onboarding/workspace.tsx b/apps/app/components/onboarding/workspace.tsx index 13558c71d..783f5f5e5 100644 --- a/apps/app/components/onboarding/workspace.tsx +++ b/apps/app/components/onboarding/workspace.tsx @@ -82,7 +82,7 @@ export const Workspace: React.FC = ({ setStep, setWorkspace, user }) => {
{ switch (i) { @@ -130,7 +130,7 @@ export const Workspace: React.FC = ({ setStep, setWorkspace, user }) => {
-
+
{invitations && invitations.length > 0 ? ( invitations.map((invitation) => (
diff --git a/apps/app/components/workspace/create-workspace-form.tsx b/apps/app/components/workspace/create-workspace-form.tsx index 213232d24..fdc078cf0 100644 --- a/apps/app/components/workspace/create-workspace-form.tsx +++ b/apps/app/components/workspace/create-workspace-form.tsx @@ -103,10 +103,10 @@ export const CreateWorkspaceForm: React.FC = ({ return (
-
-
-
- Workspace name +
+
+
+ Workspace name = ({ error={errors.name} />
-
- Workspace URL +
+ Workspace URL
{typeof window !== "undefined" && window.location.origin}/ @@ -156,8 +156,8 @@ export const CreateWorkspaceForm: React.FC = ({
-
- How large is your company? +
+ How large is your company?