removed title
This commit is contained in:
parent
1725be73cb
commit
a7756a1310
|
|
@ -73,7 +73,6 @@ export const HomeTimer: FC<Props> = ({ className }) => {
|
||||||
}, [targetDate]); // Убрали зависимость от timeLeft
|
}, [targetDate]); // Убрали зависимость от timeLeft
|
||||||
|
|
||||||
const {
|
const {
|
||||||
title,
|
|
||||||
days: daysLabel,
|
days: daysLabel,
|
||||||
hours: hoursLabel,
|
hours: hoursLabel,
|
||||||
minutes: minutesLabel,
|
minutes: minutesLabel,
|
||||||
|
|
@ -81,19 +80,14 @@ export const HomeTimer: FC<Props> = ({ className }) => {
|
||||||
} = t("timer", {
|
} = t("timer", {
|
||||||
returnObjects: true,
|
returnObjects: true,
|
||||||
}) as {
|
}) as {
|
||||||
title: string;
|
|
||||||
days: string;
|
days: string;
|
||||||
hours: string;
|
hours: string;
|
||||||
minutes: string;
|
minutes: string;
|
||||||
seconds: string;
|
seconds: string;
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<section className={cn("", className)}>
|
<section className={cn("2xl:w-[600px] xl:w-[450px] w-[350px]", className)}>
|
||||||
<h3 className="sm:text-[28px] text-base sm:leading-8 text-right mb-6 !text-[#FAD8DB]">
|
<div className="grid grid-cols-4 w-full mr-[50%] gap-6 items-end place-items-center">
|
||||||
{title}
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div className="grid grid-cols-4 max-w-[392px] gap-6 items-end place-items-center">
|
|
||||||
<TimerItem
|
<TimerItem
|
||||||
value={timeLeft.days}
|
value={timeLeft.days}
|
||||||
prevValue={prevValues.days || timeLeft.days}
|
prevValue={prevValues.days || timeLeft.days}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue