added wpa needed files. WPA is still WIP.

This commit is contained in:
Dobromir Popov
2024-04-06 19:22:35 +03:00
parent 239207e1d3
commit b669e71146
10 changed files with 95 additions and 32 deletions

View File

@ -28,13 +28,6 @@ export default function App({
return (
<>
<Head>
{/* Other tags */}
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
rel="stylesheet"
/>
</Head>
<SessionProvider session={session} >
<LocalizationProvider dateAdapter={AdapterDayjs}>
<Component {...pageProps} />

View File

@ -7,6 +7,10 @@ class MyDocument extends Document {
<Head>
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="/favicon.png"></link>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
rel="stylesheet"
/>
<meta name="theme-color" content="#e36600" />
</Head>
<body>

View File

@ -290,6 +290,8 @@ export default async function handler(req, res) {
}
break;
case "sendNewAssignmentEmails":
default:
return res.status(400).json({ message: "Invalid action" });
}

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)}
>
Търси заместник