From 3be5e710c6b5512cce5df3d967065f406dcdbfed Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sat, 6 Apr 2024 22:58:46 +0300 Subject: [PATCH] tweaks --- components/publisher/PublisherInlineForm.js | 3 +-- pages/cart/publishers/myschedule.tsx | 4 ++-- public/favicon.png | Bin 0 -> 70664 bytes src/templates/emails/coverMeAccepted.hbs | 6 +++--- 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 public/favicon.png diff --git a/components/publisher/PublisherInlineForm.js b/components/publisher/PublisherInlineForm.js index 1956a61..b231520 100644 --- a/components/publisher/PublisherInlineForm.js +++ b/components/publisher/PublisherInlineForm.js @@ -4,8 +4,7 @@ import toast from "react-hot-toast"; import { useRouter } from "next/router"; const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => { - const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth); - const router = useRouter(); + const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth || 2); const storedValue = useRef(initialShiftsPerMonth); useEffect(() => { diff --git a/pages/cart/publishers/myschedule.tsx b/pages/cart/publishers/myschedule.tsx index c7c4ee2..bf8a2d5 100644 --- a/pages/cart/publishers/myschedule.tsx +++ b/pages/cart/publishers/myschedule.tsx @@ -113,7 +113,7 @@ export default function MySchedulePage({ assignments }) { Добави в календар