From 96bf754a31ed343a2fd94143efdcfa634438057b Mon Sep 17 00:00:00 2001 From: Rodrigo Araujo Date: Tue, 19 Mar 2024 22:44:46 -0300 Subject: [PATCH] fix: QA --- components/cards/ImageCard.tsx | 6 +- components/header/Menu.tsx | 1 - components/layout/Carousel.tsx | 9 +- components/minicart/Cart.tsx | 2 +- components/ui/ContactInput.tsx | 8 +- components/ui/SectionHeader.tsx | 6 +- components/ui/SliderJS.tsx | 8 +- routes/_app.tsx | 5 +- sections/Apresentacao/Apresentacao.tsx | 2 +- sections/ComoFunciona/ComoFunciona.tsx | 114 +++++----- sections/Contato/Contato.tsx | 228 +++++++++++-------- sections/FooterNew/FooterNew.tsx | 76 +++---- sections/OQueFazemos/OQueFazemos.tsx | 154 +++++++------ sections/PorqueContratar/PorqueContratar.tsx | 90 ++++---- tailwind.css | 1 + 15 files changed, 379 insertions(+), 331 deletions(-) diff --git a/components/cards/ImageCard.tsx b/components/cards/ImageCard.tsx index fd9aa22..d6f0cee 100644 --- a/components/cards/ImageCard.tsx +++ b/components/cards/ImageCard.tsx @@ -93,11 +93,13 @@ function Card( /> )} - {/* {buttonText && ( + { + /* {buttonText && ( {buttonText} - )} */} + )} */ + } ); } diff --git a/components/header/Menu.tsx b/components/header/Menu.tsx index d12e928..385202e 100644 --- a/components/header/Menu.tsx +++ b/components/header/Menu.tsx @@ -36,7 +36,6 @@ function Menu({ items }: Props) { ))} - ); } diff --git a/components/layout/Carousel.tsx b/components/layout/Carousel.tsx index 4fbc8b2..af8cf26 100644 --- a/components/layout/Carousel.tsx +++ b/components/layout/Carousel.tsx @@ -74,7 +74,7 @@ function Section({ interval = 0, layout, style, children }: Props) { {items?.map((item, index) => ( {item} @@ -123,7 +123,12 @@ function Section({ interval = 0, layout, style, children }: Props) { )} - + ); diff --git a/components/minicart/Cart.tsx b/components/minicart/Cart.tsx index 665e468..ee7c322 100644 --- a/components/minicart/Cart.tsx +++ b/components/minicart/Cart.tsx @@ -27,7 +27,7 @@ function Cart({ platform }: Props) { } if (platform === "linx") { - return ; + return; } if (platform === "shopify") { diff --git a/components/ui/ContactInput.tsx b/components/ui/ContactInput.tsx index fa47e3f..bc3d0a0 100644 --- a/components/ui/ContactInput.tsx +++ b/components/ui/ContactInput.tsx @@ -1,7 +1,3 @@ export function ScriptRespondi() { - - - return ( - - ) -} \ No newline at end of file + return ; +} diff --git a/components/ui/SectionHeader.tsx b/components/ui/SectionHeader.tsx index 1fa6e2e..3f249e9 100644 --- a/components/ui/SectionHeader.tsx +++ b/components/ui/SectionHeader.tsx @@ -29,9 +29,7 @@ function Header(props: Props) {

{props.title} @@ -44,7 +42,7 @@ function Header(props: Props) { "leading-6 lg:leading-8 text-[20px] max-[1020px]:text-[20px]", props.colorReverse ? "text-primary-content" - : "text-base-content" + : "text-base-content", )} > {props.description} diff --git a/components/ui/SliderJS.tsx b/components/ui/SliderJS.tsx index 854714b..d13bed9 100644 --- a/components/ui/SliderJS.tsx +++ b/components/ui/SliderJS.tsx @@ -5,7 +5,7 @@ export interface Props { scroll?: "smooth" | "auto"; interval?: number; infinite?: boolean; - centerMode?: boolean + centerMode?: boolean; } const ATTRIBUTES = { @@ -190,14 +190,14 @@ function Slider({ scroll = "smooth", interval, infinite = false, - centerMode = true + centerMode = true, }: Props) { - useEffect(() => setup({ rootId, scroll, interval, infinite, centerMode}), [ + useEffect(() => setup({ rootId, scroll, interval, infinite, centerMode }), [ rootId, scroll, interval, infinite, - centerMode + centerMode, ]); return
; diff --git a/routes/_app.tsx b/routes/_app.tsx index f3eef3c..6acd0b6 100644 --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -31,9 +31,10 @@ export default defineApp(async (_req, ctx) => { -