Merge commit '3be5e710c6b5512cce5df3d967065f406dcdbfed' into production

This commit is contained in:
Dobromir Popov
2024-04-06 23:00:25 +03:00
7 changed files with 7 additions and 8 deletions

View File

@ -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(() => {

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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;

View File

@ -113,7 +113,7 @@ export default function MySchedulePage({ assignments }) {
Добави в календар
</button>
<button
className="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
className="mr-2 mb-2 inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
onClick={() => {
setАssignment(assignment);
setIsModalOpen(true)
@ -122,7 +122,7 @@ export default function MySchedulePage({ assignments }) {
Избери Заместник
</button>
<button
className="inline-flex items-center px-3 mx-2 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
className="mr-2 mb-2 inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
onClick={() => searchReplacement(assignment.id)}
>
Търси заместник

BIN
public/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB