This commit is contained in:
Dobromir Popov
2024-03-02 21:46:37 +02:00
parent 5998371222
commit 8de48e1c41
6 changed files with 11 additions and 11 deletions

View File

@ -441,7 +441,7 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
<ToastContainer></ToastContainer>
<form id="formAv" className="form p-5 bg-white shadow-md rounded-lg p-8 pr-12" onSubmit={handleSubmit}>
<h3 className="text-xl font-semibold mb-5 text-gray-800 border-b pb-2">
{availability.id ? "Редактирай" : "Създай"} Достъпност
{availability.id ? "Редактирай" : "Нова"} възможност
</h3>
<LocalizationProvider dateAdapter={AdapterDateFns} localeText={bgBG} adapterLocale={bg}>

View File

@ -87,7 +87,7 @@ export default function AvailabilityList({ publisher, showNew }) {
{<div className="flex justify-center mt-2">
<button className="btn bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded transition duration-300"
onClick={() => { setSelectedItem(null); setShowAv(true) }}>Нова възможност</button>
onClick={() => { setSelectedItem(null); setShowAv(true) }}>Добави нова възможност</button>
</div>
}
<div className="h-4 p-10">

View File

@ -311,7 +311,7 @@ const AvCalendar = ({ publisherId, events, selectedDate }) => {
const onConfirm = (event) => {
console.log("onConfirm: " + event.id);
toast.info("Вие потвърдихте!", { autoClose: 2000 });
toast.info("Потвърдено!", { autoClose: 2000 });
// Update the event data
event.isConfirmed = true;
event.isactive = false;

View File

@ -4,7 +4,7 @@ import { UserRole } from "@prisma/client";
const sidemenu = [
{
id: "dashboard",
text: "Предпочитания",
text: "Възможности",
url: "/dash",
roles: [UserRole.ADMIN, UserRole.USER, UserRole.POWERUSER],
svgData:
@ -46,7 +46,7 @@ const sidemenu = [
},
{
id: "contactAll",
text: "Контакти",
text: "Участници",
url: "/cart/publishers/contacts",
},
{
@ -56,7 +56,7 @@ const sidemenu = [
},
{
id: "admin",
text: "Админ",
text: "Администрация",
url: "/admin",
roles: [UserRole.ADMIN, UserRole.POWERUSER],
svgData:
@ -118,12 +118,12 @@ const footerMenu = [
},
{
id: "privacy-policy",
text: "Поверителност",
text: "Политика за поверителност",
url: "/privacy",
},
{
id: "feedback",
text: "Отзив",
text: "Отзиви",
url: "/feedback",
},