diff --git a/src/components/shared/home/home-about.tsx b/src/components/shared/home/home-about.tsx index f4060fc..9c59c7b 100644 --- a/src/components/shared/home/home-about.tsx +++ b/src/components/shared/home/home-about.tsx @@ -27,7 +27,7 @@ export const HomeAbout: FC = () => { if (isPending) return ; return ( -
+
diff --git a/src/components/shared/home/home-actions.tsx b/src/components/shared/home/home-actions.tsx index e9ebe85..f0b93fc 100644 --- a/src/components/shared/home/home-actions.tsx +++ b/src/components/shared/home/home-actions.tsx @@ -14,8 +14,7 @@ interface Props { export const HomeActions: FC = ({ className }) => { const { t } = useTranslation("home"); - const { title, items } = t("buttons", { returnObjects: true }) as { - title: string; + const { items } = t("buttons", { returnObjects: true }) as { items: { text: string; link?: string; @@ -25,15 +24,9 @@ export const HomeActions: FC = ({ className }) => { }[]; }; - console.log(items); - return ( -
+
-

- {title} -

-
{items.map((item, i) => !item.dropdown ? ( diff --git a/src/components/shared/home/home-hero.tsx b/src/components/shared/home/home-hero.tsx index bc31e58..5be5a40 100644 --- a/src/components/shared/home/home-hero.tsx +++ b/src/components/shared/home/home-hero.tsx @@ -1,12 +1,9 @@ -import useEmblaCarousel from "embla-carousel-react"; import { FC } from "react"; import { useMediaQuery } from "usehooks-ts"; import { useTranslation } from "react-i18next"; import { HomeTimer } from "./"; export const HomeHero: FC = () => { - const [embalRef] = useEmblaCarousel(); - const { t } = useTranslation("home"); const lg = useMediaQuery("(min-width: 1024px)"); @@ -20,8 +17,8 @@ export const HomeHero: FC = () => { return (
-
-
+
+
{
-
- +
+ +
+
); }; diff --git a/src/components/shared/home/home-offers.tsx b/src/components/shared/home/home-offers.tsx index 907c81f..eebc69e 100644 --- a/src/components/shared/home/home-offers.tsx +++ b/src/components/shared/home/home-offers.tsx @@ -34,7 +34,7 @@ export const HomeOffers: FC = () => { }, [emblaApi]); return ( -
+
diff --git a/src/components/shared/home/home-time.tsx b/src/components/shared/home/home-time.tsx index a87254c..65326e8 100644 --- a/src/components/shared/home/home-time.tsx +++ b/src/components/shared/home/home-time.tsx @@ -25,7 +25,7 @@ export const HomeTime: FC = ({ className }) => { if (isPending) return ; return ( -
+

{times[translate].title}

diff --git a/src/components/shared/timer-item.tsx b/src/components/shared/timer-item.tsx index 009732d..71fe166 100644 --- a/src/components/shared/timer-item.tsx +++ b/src/components/shared/timer-item.tsx @@ -8,22 +8,24 @@ export const TimerItem = ({ prevValue: string; }) => (
-
+
{prevValue} {value}
-
{label}
+
+ {label} +
);