From c7efdb89c2543ada03ca6f68603868fb6fc0bbb8 Mon Sep 17 00:00:00 2001 From: IluaAir Date: Thu, 23 Oct 2025 22:24:03 +0300 Subject: [PATCH] add buttons --- taskncoffee-app/src/components/Calendar.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/taskncoffee-app/src/components/Calendar.jsx b/taskncoffee-app/src/components/Calendar.jsx index 26c1e68..2ec9382 100644 --- a/taskncoffee-app/src/components/Calendar.jsx +++ b/taskncoffee-app/src/components/Calendar.jsx @@ -1,5 +1,6 @@ import { useState, useEffect } from 'react'; import { getUserTasks } from '@/api/users.service'; +import { Button } from '@/components/ui/button'; export default function Calendar() { const [tasksFromBackend, setTasksFromBackend] = useState([]); @@ -100,7 +101,7 @@ export default function Calendar() {

{day.month} {day.date}

- {day.tasks.length > 0 ? ( + { day.tasks.map((task) => (
)) - ) : ( -

No tasks

- )} + } +
);