CFE-3 making directories and making test file for expert management and write first test

This commit is contained in:
2023-09-30 16:44:54 +03:30
parent d22650c176
commit dd2ffa8a3c
6 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import WithAuthMiddleware from "@/middlewares/WithAuth";
import {parse} from "next-useragent";
import DashboardExpertManagementComponent from "@/components/dashboard/expert-management";
export default function ExpertManagement() {
return (
<WithAuthMiddleware>
<DashboardExpertManagementComponent/>
</WithAuthMiddleware>
);
}
export async function getServerSideProps({req, locale}) {
const {isBot} = parse(req.headers["user-agent"]);
return {
props: {
messages: (await import(`&/locales/${locale}/app.json`)).default,
title: "Dashboard.expert_management",
isBot,
locale
},
};
}