@ -2,13 +2,11 @@ import React from 'react';
|
|||||||
import Layout from "../components/layout";
|
import Layout from "../components/layout";
|
||||||
import FeedbackForm from "../components/reports/FeedbackForm";
|
import FeedbackForm from "../components/reports/FeedbackForm";
|
||||||
import { useTranslations } from 'next-intl';
|
import { useTranslations } from 'next-intl';
|
||||||
import ProtectedRoute from "../components/protectedRoute";
|
|
||||||
|
|
||||||
const ContactsPage = () => {
|
const ContactsPage = () => {
|
||||||
const t = useTranslations('common');
|
const t = useTranslations('common');
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<ProtectedRoute>
|
|
||||||
<div className="mx-auto my-8 p-6 max-w-4xl bg-white rounded-lg shadow-md">
|
<div className="mx-auto my-8 p-6 max-w-4xl bg-white rounded-lg shadow-md">
|
||||||
<h1 className="text-2xl font-bold text-gray-800 mb-4">{t('appNameLong') - t('contacts')}</h1>
|
<h1 className="text-2xl font-bold text-gray-800 mb-4">{t('appNameLong') - t('contacts')}</h1>
|
||||||
<ul className="list-disc pl-5">
|
<ul className="list-disc pl-5">
|
||||||
@ -33,7 +31,7 @@ const ContactsPage = () => {
|
|||||||
<span className="align-middle">Телеграм</span>
|
<span className="align-middle">Телеграм</span>
|
||||||
</a> */}
|
</a> */}
|
||||||
</div >
|
</div >
|
||||||
</ProtectedRoute>
|
|
||||||
</Layout >
|
</Layout >
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Layout from "../components/layout";
|
import Layout from "../components/layout";
|
||||||
import FeedbackForm from "../components/reports/FeedbackForm";
|
import FeedbackForm from "../components/reports/FeedbackForm";
|
||||||
import ProtectedRoute from "../components/protectedRoute";
|
|
||||||
|
|
||||||
const ContactsPage = () => {
|
const ContactsPage = () => {
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<ProtectedRoute>
|
|
||||||
<div className="h-5/6 grid place-items-center">
|
<div className="h-5/6 grid place-items-center">
|
||||||
<FeedbackForm />
|
<FeedbackForm />
|
||||||
</div>
|
</div>
|
||||||
</ProtectedRoute>
|
|
||||||
</Layout >
|
</Layout >
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import Layout from "../components/layout";
|
import Layout from "../components/layout";
|
||||||
import ProtectedRoute from "../components/protectedRoute";
|
|
||||||
|
|
||||||
const PDFViewerPage = () => {
|
const PDFViewerPage = () => {
|
||||||
const [language, setLanguage] = useState('bg'); // default language is Bulgarian
|
const [language, setLanguage] = useState('bg'); // default language is Bulgarian
|
||||||
@ -26,9 +25,7 @@ const PDFViewerPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout><script src="https://mozilla.github.io/pdf.js/dist/pdf.js"></script>
|
||||||
<ProtectedRoute>
|
|
||||||
<script src="https://mozilla.github.io/pdf.js/dist/pdf.js"></script>
|
|
||||||
<h1 className="text-3xl font-bold">Напътствия</h1>
|
<h1 className="text-3xl font-bold">Напътствия</h1>
|
||||||
<div className="guidelines-section mb-5 p-4 bg-gray-100 rounded-lg">
|
<div className="guidelines-section mb-5 p-4 bg-gray-100 rounded-lg">
|
||||||
<h2 className="text-2xl font-semibold mb-3">Важни напътствия за службата</h2>
|
<h2 className="text-2xl font-semibold mb-3">Важни напътствия за службата</h2>
|
||||||
@ -82,7 +79,6 @@ const PDFViewerPage = () => {
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</ProtectedRoute>
|
|
||||||
</Layout >
|
</Layout >
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@ import Layout from "../components/layout";
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { url } from 'inspector';
|
import { url } from 'inspector';
|
||||||
import ProtectedRoute from "../components/protectedRoute";
|
import ProtectedRoute, { serverSideAuth } from "/components/protectedRoute";
|
||||||
import axiosInstance from '../src/axiosSecure';
|
import axiosInstance from '../src/axiosSecure';
|
||||||
import { UserRole } from "@prisma/client";
|
import { UserRole } from "@prisma/client";
|
||||||
|
|
||||||
@ -48,7 +48,6 @@ const PDFViewerPage = ({ pdfFiles }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<ProtectedRoute>
|
|
||||||
<h1 className="text-3xl font-bold p-4 pt-8">Разрешителни</h1>
|
<h1 className="text-3xl font-bold p-4 pt-8">Разрешителни</h1>
|
||||||
<ProtectedRoute allowedRoles={[UserRole.ADMIN]} deniedMessage="">
|
<ProtectedRoute allowedRoles={[UserRole.ADMIN]} deniedMessage="">
|
||||||
<div className="border border-blue-500 p-4 rounded shadow-md">
|
<div className="border border-blue-500 p-4 rounded shadow-md">
|
||||||
@ -98,9 +97,7 @@ const PDFViewerPage = ({ pdfFiles }) => {
|
|||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</ProtectedRoute>
|
|
||||||
</Layout >
|
</Layout >
|
||||||
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user