From c95c9de3203653e995a858ffe80cd5c5237ecfd0 Mon Sep 17 00:00:00 2001 From: Arif Hasanic Date: Sun, 31 Aug 2025 15:56:36 +0200 Subject: [PATCH] fix code style issues --- src/components/Dashboard/Dashboard.tsx | 1 + src/components/FourTwenty/FourTwenty.tsx | 54 ++++++++++++------------ 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/src/components/Dashboard/Dashboard.tsx b/src/components/Dashboard/Dashboard.tsx index 3565a07..10e0be5 100644 --- a/src/components/Dashboard/Dashboard.tsx +++ b/src/components/Dashboard/Dashboard.tsx @@ -15,6 +15,7 @@ import Weather from "@/components/Weather/Weather"; import amogus from "/img/amogus.png"; import style from "./style.module.css"; import FourTwenty from "../FourTwenty/FourTwenty"; +import style from "./style.module.css"; export default function Dashboard() { const schemes = [style.day, style.evening, style.night]; diff --git a/src/components/FourTwenty/FourTwenty.tsx b/src/components/FourTwenty/FourTwenty.tsx index 3f85214..1785a87 100644 --- a/src/components/FourTwenty/FourTwenty.tsx +++ b/src/components/FourTwenty/FourTwenty.tsx @@ -1,39 +1,37 @@ -import style from './style.module.css'; +// import style from "./style.module.css"; -function Timer({hours, minutes}: {hours: number, minutes: number}) { - const x = hours > 0 ? `${hours}h ` : ''; - const y = minutes > 0 ? `${minutes % 60}m` : ''; +// function Timer({ hours, minutes }: { hours: number; minutes: number }) { +// const x = hours > 0 ? `${hours}h ` : ""; +// const y = minutes > 0 ? `${minutes % 60}m` : ""; - return ( -
-

{x}{y}

-
- ); -} +// return ( +//
+//

+// {x} +// {y} +//

+//
+// ); +// } -function FourTwentyLoading() { +// function FourTwentyLoading() {} -} - -function FourTwentySmoking() { - return ( -
- Smoking -
- ); -} +// function FourTwentySmoking() { +// return ( +//
+// Smoking +//
+// ); +// } export default function FourTwenty() { - const now = new Date(); - const fourTwenty = new Date(); - fourTwenty.setHours(16, 20, 0, 0); - const secondsTo420 = Math.floor((fourTwenty.getTime() - now.getTime()) / 1000); - const minutesTo420 = Math.floor(secondsTo420 / 60); - const hoursTo420 = Math.floor(minutesTo420 / 60); - return (
); -} \ No newline at end of file +}