Merge commit '3be5e710c6b5512cce5df3d967065f406dcdbfed' into production
This commit is contained in:
@ -4,8 +4,7 @@ import toast from "react-hot-toast";
|
|||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
|
|
||||||
const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => {
|
const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => {
|
||||||
const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth);
|
const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth || 2);
|
||||||
const router = useRouter();
|
|
||||||
const storedValue = useRef(initialShiftsPerMonth);
|
const storedValue = useRef(initialShiftsPerMonth);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -102,7 +102,7 @@ export default function ExperienceForm({ publisherId, assgnmentId, existingItem,
|
|||||||
try {
|
try {
|
||||||
const response = await axiosInstance.post('/api/data/reports', item);
|
const response = await axiosInstance.post('/api/data/reports', item);
|
||||||
console.log(response);
|
console.log(response);
|
||||||
toast.success("Случката е записана. Благодарим Ви!");
|
toast.success("Случката е записана. Благодаря!");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (onDone) {
|
if (onDone) {
|
||||||
onDone();
|
onDone();
|
||||||
|
@ -78,7 +78,7 @@ export default function FeedbackForm({ publisherId, onDone }) {
|
|||||||
try {
|
try {
|
||||||
const response = await axiosInstance.post('/api/data/reports', item);
|
const response = await axiosInstance.post('/api/data/reports', item);
|
||||||
console.log(response);
|
console.log(response);
|
||||||
toast.success("Благодарим Ви за вашия отзив!");
|
toast.success("Благодаря за отзива!");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (onDone) {
|
if (onDone) {
|
||||||
onDone();
|
onDone();
|
||||||
|
@ -101,7 +101,7 @@ export default function ReportForm({ shiftId, existingItem, onDone }) {
|
|||||||
try {
|
try {
|
||||||
const response = await axiosInstance.post('/api/data/reports', item);
|
const response = await axiosInstance.post('/api/data/reports', item);
|
||||||
console.log(response);
|
console.log(response);
|
||||||
toast.success("Гоово. Благодарим Ви за отчета!");
|
toast.success("Гоово. Благодаря за отчета!");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (onDone) {
|
if (onDone) {
|
||||||
onDone();
|
onDone();
|
||||||
|
@ -153,7 +153,7 @@ export default async function handler(req, res) {
|
|||||||
|
|
||||||
emailHelper.SendEmailHandlebars(to, "coverMeAccepted", model);
|
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);
|
res.redirect(messagePageUrl);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -113,7 +113,7 @@ export default function MySchedulePage({ assignments }) {
|
|||||||
Добави в календар
|
Добави в календар
|
||||||
</button>
|
</button>
|
||||||
<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={() => {
|
onClick={() => {
|
||||||
setАssignment(assignment);
|
setАssignment(assignment);
|
||||||
setIsModalOpen(true)
|
setIsModalOpen(true)
|
||||||
@ -122,7 +122,7 @@ export default function MySchedulePage({ assignments }) {
|
|||||||
Избери Заместник
|
Избери Заместник
|
||||||
</button>
|
</button>
|
||||||
<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)}
|
onClick={() => searchReplacement(assignment.id)}
|
||||||
>
|
>
|
||||||
Търси заместник
|
Търси заместник
|
||||||
|
BIN
public/favicon.png
Normal file
BIN
public/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
Reference in New Issue
Block a user