From 5835730e3e17166e4b408f7c79528a5f9091cd53 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 22 May 2024 17:54:14 +0300 Subject: [PATCH 1/2] . --- 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 2/2] 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';