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