feat: page titles

This commit is contained in:
2025-04-07 17:06:01 +03:00
parent a6eec16309
commit e6ab12f957
6 changed files with 33 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import Task from "@/components/task";
import { UrlsTitle } from "@/enums/urls";
import { FunctionComponent } from "preact";
import { useMemo } from "preact/hooks";
import { useEffect, useMemo } from "preact/hooks";
import classes from "./profile_tasks.module.scss";
const example_tasks = ["Test 1", "Test 2", "Test 3", "Test 4", "Test 5", "Test 6", "Test 7", "Test 8"];
@@ -11,6 +12,9 @@ const ProfileTasks: FunctionComponent = () => {
const formatter = new Intl.DateTimeFormat("ru-RU", { month: "long", day: "numeric" });
return formatter.format(date);
}, []);
useEffect(() => {
document.title = UrlsTitle.TASKS;
}, []);
return (
<div class={classes.container}>
<div class={classes.header}>Сегодня: {getDate}</div>