From 743780443fce5e7402e38456c852b82db2d40e6c Mon Sep 17 00:00:00 2001 From: JaneMoroz Date: Thu, 29 Aug 2024 22:49:09 +0300 Subject: [PATCH] fix: fix spacing and validation issues --- .../components/ResourceInput.tsx | 9 ++---- .../components/ResourcesContainer.tsx | 32 ++++++++++--------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourceInput.tsx b/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourceInput.tsx index 242cfc30..586f4fbc 100644 --- a/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourceInput.tsx +++ b/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourceInput.tsx @@ -70,16 +70,12 @@ export default function ResourceInput() { className="flex w-full items-center rounded-xl bg-base-200 p-1 shadow-lg" onSubmit={handleSubmit(onSubmit)} > -
+
} /> @@ -87,6 +83,7 @@ export default function ResourceInput() { id="title" placeholder="Name your resource here." ariaLabel="resource name" + errorMessage={errors.title?.message} {...register("title")} />
diff --git a/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourcesContainer.tsx b/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourcesContainer.tsx index 78e3632d..b8a4cb1d 100644 --- a/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourcesContainer.tsx +++ b/src/app/(main)/my-voyage/[teamId]/voyage-resources/components/ResourcesContainer.tsx @@ -49,21 +49,23 @@ export default function ResourcesContainer({ data }: ResourceContainerProps) { isDisabled={!voyageResources?.length} />
- {formattedResources?.length ? ( - formattedResources.map((item) => ( - - )) - ) : ( - - )} +
+ {formattedResources?.length ? ( + formattedResources.map((item) => ( + + )) + ) : ( + + )} +
); }