From 95a35ba164507a00bf35198c6018d8f6bb4ee811 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 22 May 2024 17:53:00 +0300 Subject: [PATCH 1/4] message on most of the pages --- pages/cart/calendar/schedule.tsx | 6 ++++++ pages/cart/publishers/myschedule.tsx | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pages/cart/calendar/schedule.tsx b/pages/cart/calendar/schedule.tsx index 63c99df..f7c952c 100644 --- a/pages/cart/calendar/schedule.tsx +++ b/pages/cart/calendar/schedule.tsx @@ -34,6 +34,12 @@ const SchedulePage = () => { fetchHtmlContent(); // Call the function to fetch HTML content }, []); // Empty dependency array means this effect runs once on component mount + // temporary alert for the users + useEffect(() => { + alert("Мили братя, искаме само да ви напомним да ни изпратите вашите предпочитания за юни до 25-то число като използвате меню 'Възможности'. Ако имате проблем, моля пишете ни на 'specialnosvidetelstvanesofia@gmail.com'"); + }, []); + + return ( diff --git a/pages/cart/publishers/myschedule.tsx b/pages/cart/publishers/myschedule.tsx index bda1015..40782de 100644 --- a/pages/cart/publishers/myschedule.tsx +++ b/pages/cart/publishers/myschedule.tsx @@ -30,6 +30,12 @@ export default function MySchedulePage({ assignments }) { return
Loading...
; } + // temporary alert for the users + useEffect(() => { + alert("Мили братя, искаме само да ви напомним да ни изпратите вашите предпочитания за юни до 25-то число като използвате меню 'Възможности'. Ако имате проблем, моля пишете ни на 'specialnosvidetelstvanesofia@gmail.com'"); + }, []); + + const handleReplaceInAssignment = () => { // Add publisher as assignment logic setIsModalOpen(false); From 9a53de6f5466218f5b07b25f14c5c818c017c039 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 22 May 2024 17:53:58 +0300 Subject: [PATCH 2/4] . --- pages/dash.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/dash.tsx b/pages/dash.tsx index 9802a3f..ba83f59 100644 --- a/pages/dash.tsx +++ b/pages/dash.tsx @@ -54,7 +54,8 @@ export default function DashboardPage({ initialItems, initialUserId, cartEvents, //const [notificationsVisible, setNotificationsVisible] = useState(false); useEffect(() => { - if (newLogin === 'true') { + //if (newLogin === 'true') + { alert("Мили братя, искаме само да ви напомним да ни изпратите вашите предпочитания за юни до 25-то число като използвате меню 'Възможности'. Ако имате проблем, моля пишете ни на 'specialnosvidetelstvanesofia@gmail.com'"); const currentPath = router.pathname; router.replace(currentPath, undefined, { shallow: true }); // Removes the query without affecting the history From 5835730e3e17166e4b408f7c79528a5f9091cd53 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 22 May 2024 17:54:14 +0300 Subject: [PATCH 3/4] . --- pages/dash.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/dash.tsx b/pages/dash.tsx index 9802a3f..0e009c7 100644 --- a/pages/dash.tsx +++ b/pages/dash.tsx @@ -54,7 +54,8 @@ export default function DashboardPage({ initialItems, initialUserId, cartEvents, //const [notificationsVisible, setNotificationsVisible] = useState(false); useEffect(() => { - if (newLogin === 'true') { + // if (newLogin === 'true') + { alert("Мили братя, искаме само да ви напомним да ни изпратите вашите предпочитания за юни до 25-то число като използвате меню 'Възможности'. Ако имате проблем, моля пишете ни на 'specialnosvidetelstvanesofia@gmail.com'"); const currentPath = router.pathname; router.replace(currentPath, undefined, { shallow: true }); // Removes the query without affecting the history From 21f1ab58157a325c9ca8d7533b39cb48d6e8855a Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 22 May 2024 18:31:23 +0300 Subject: [PATCH 4/4] fix --- pages/cart/publishers/myschedule.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/cart/publishers/myschedule.tsx b/pages/cart/publishers/myschedule.tsx index 40782de..02043a4 100644 --- a/pages/cart/publishers/myschedule.tsx +++ b/pages/cart/publishers/myschedule.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { useState, useEffect } from 'react'; import Layout from "../../../components/layout"; import ProtectedRoute from '../../../components/protectedRoute'; import { UserRole } from '@prisma/client';