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/components/reports/ExperienceForm.js b/components/reports/ExperienceForm.js
index 43c230a..eff676f 100644
--- a/components/reports/ExperienceForm.js
+++ b/components/reports/ExperienceForm.js
@@ -102,7 +102,7 @@ export default function ExperienceForm({ publisherId, assgnmentId, existingItem,
try {
const response = await axiosInstance.post('/api/data/reports', item);
console.log(response);
- toast.success("Случката е записана. Благодарим Ви!");
+ toast.success("Случката е записана. Благодаря!");
setTimeout(() => {
if (onDone) {
onDone();
diff --git a/components/reports/FeedbackForm.js b/components/reports/FeedbackForm.js
index 28e939f..3cd0664 100644
--- a/components/reports/FeedbackForm.js
+++ b/components/reports/FeedbackForm.js
@@ -78,7 +78,7 @@ export default function FeedbackForm({ publisherId, onDone }) {
try {
const response = await axiosInstance.post('/api/data/reports', item);
console.log(response);
- toast.success("Благодарим Ви за вашия отзив!");
+ toast.success("Благодаря за отзива!");
setTimeout(() => {
if (onDone) {
onDone();
diff --git a/components/reports/ReportForm.js b/components/reports/ReportForm.js
index ab5bf75..b6f22b5 100644
--- a/components/reports/ReportForm.js
+++ b/components/reports/ReportForm.js
@@ -101,7 +101,7 @@ export default function ReportForm({ shiftId, existingItem, onDone }) {
try {
const response = await axiosInstance.post('/api/data/reports', item);
console.log(response);
- toast.success("Гоово. Благодарим Ви за отчета!");
+ toast.success("Гоово. Благодаря за отчета!");
setTimeout(() => {
if (onDone) {
onDone();
diff --git a/pages/api/email.ts b/pages/api/email.ts
index f565e5f..4b23b98 100644
--- a/pages/api/email.ts
+++ b/pages/api/email.ts
@@ -153,7 +153,7 @@ export default async function handler(req, res) {
emailHelper.SendEmailHandlebars(to, "coverMeAccepted", model);
- const messagePageUrl = `/message?message=${encodeURIComponent('Вашата заявка за замстване е обработена успешно')}&type=info&caption=${encodeURIComponent('Благодарим ви!')}`;
+ const messagePageUrl = `/message?message=${encodeURIComponent('Вашата заявка за замстване е обработена успешно')}&type=info&caption=${encodeURIComponent('Благодаря!')}`;
res.redirect(messagePageUrl);
break;
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 }) {
Добави в календар