From f11ee9135387f0b4e839a7939970b09827e8a050 Mon Sep 17 00:00:00 2001 From: SeniorDev Date: Tue, 8 Oct 2024 10:55:43 -0400 Subject: [PATCH 1/6] I fix feedback. --- src/components/Core/Icon/index.tsx | 8 ++++---- src/components/Core/TextArea.tsx | 4 ++-- src/components/Pages/BonasiContent/index.tsx | 3 --- .../BonsaiContent.tsx} | 8 ++++---- src/components/Pages/BonsaiContent/index.tsx | 3 +++ src/components/Pages/LandingPage/LandingPage.tsx | 12 ++++++------ src/lib/consts.tsx | 2 +- src/styles/globals.css | 14 ++++++++++++-- 8 files changed, 32 insertions(+), 22 deletions(-) delete mode 100644 src/components/Pages/BonasiContent/index.tsx rename src/components/Pages/{BonasiContent/BonasiContent.tsx => BonsaiContent/BonsaiContent.tsx} (87%) create mode 100644 src/components/Pages/BonsaiContent/index.tsx diff --git a/src/components/Core/Icon/index.tsx b/src/components/Core/Icon/index.tsx index ff860ce9..9eebe509 100644 --- a/src/components/Core/Icon/index.tsx +++ b/src/components/Core/Icon/index.tsx @@ -66,10 +66,10 @@ function Icon({ size <= 20 ? styles.sizes.mini : size < 25 - ? styles.sizes.small - : size < 40 - ? styles.sizes.medium - : styles.sizes.large + ? styles.sizes.small + : size < 40 + ? styles.sizes.medium + : styles.sizes.large } ${!noHighlights && styles?.variants?.[variant]?.highlight} ${className} diff --git a/src/components/Core/TextArea.tsx b/src/components/Core/TextArea.tsx index 5dddeea0..8249db25 100644 --- a/src/components/Core/TextArea.tsx +++ b/src/components/Core/TextArea.tsx @@ -55,8 +55,8 @@ function TextArea({ className={`text-gray_1 w-full border-[2px] !border-gray_1 bg-black focus:ring-0 focus:border-gray_1 ${className || ""} ${ - hookToForm && fieldError && fieldError?.message ? clasNameError : "" - }`} + hookToForm && fieldError && fieldError?.message ? clasNameError : "" + }`} {...(!hookToForm && { value, onChange, diff --git a/src/components/Pages/BonasiContent/index.tsx b/src/components/Pages/BonasiContent/index.tsx deleted file mode 100644 index 0e1c3160..00000000 --- a/src/components/Pages/BonasiContent/index.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import BonasiContent from "./BonasiContent" - -export default BonasiContent diff --git a/src/components/Pages/BonasiContent/BonasiContent.tsx b/src/components/Pages/BonsaiContent/BonsaiContent.tsx similarity index 87% rename from src/components/Pages/BonasiContent/BonasiContent.tsx rename to src/components/Pages/BonsaiContent/BonsaiContent.tsx index d1583f6b..56523354 100644 --- a/src/components/Pages/BonasiContent/BonasiContent.tsx +++ b/src/components/Pages/BonsaiContent/BonsaiContent.tsx @@ -1,9 +1,9 @@ import getIpfsLink from "@/lib/getIpfsLink" -import { BONASI } from "@/lib/consts" +import { BONSAI } from "@/lib/consts" import RecBar from "../../RecBar" import useIsMobile from "../../../hooks/useIsMobile" -const BonasiContent = () => { +const BonsaiContent = () => { const isMobile = useIsMobile() return ( @@ -20,7 +20,7 @@ const BonasiContent = () => { > {/* eslint-disable-next-line jsx-a11y/media-has-caption */}