From 6a6b8091c7281fd551bbebb5dcff7435762f1511 Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Mon, 7 Apr 2025 13:03:11 +0300 Subject: [PATCH] feat: profile tasks page --- src/pages/profile.tsx | 2 +- src/pages/profile_tasks.module.scss | 13 +++++++++++++ src/pages/profile_tasks.tsx | 26 ++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/pages/profile_tasks.module.scss create mode 100644 src/pages/profile_tasks.tsx diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index 55350f0..cf9d61c 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -9,7 +9,7 @@ const ProfilePage: FunctionComponent = () => {
import("./profile_settings"))} /> -

Tasks

} /> + import("./profile_tasks"))} /> import("./calendar"))} /> { + const getDate = useMemo(() => { + const date = new Date(); + const formatter = new Intl.DateTimeFormat("ru-RU", { month: "long", day: "numeric" }); + return formatter.format(date); + }, []); + return ( +
+
Сегодня: {getDate}
+
+ {example_tasks.map((task, index) => ( + + ))} +
+
+ ); +}; + +export default ProfileTasks;