detail page done
This commit is contained in:
10
src/app/[locale]/[detail]/page.tsx
Normal file
10
src/app/[locale]/[detail]/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { PlagiarismDetailPage } from '@/widgets/detail/ui/detailPage';
|
||||
|
||||
interface Props {
|
||||
params: Promise<{ detail: string }>;
|
||||
}
|
||||
|
||||
export default async function DetailPage({ params }: Props) {
|
||||
const { detail } = await params;
|
||||
return <PlagiarismDetailPage checkId={detail} />;
|
||||
}
|
||||
@@ -1,8 +1,6 @@
|
||||
import type { Metadata } from 'next';
|
||||
import '../globals.css';
|
||||
import { golosText } from '@/shared/config/fonts';
|
||||
import { ThemeProvider } from '@/shared/config/theme-provider';
|
||||
import { PRODUCT_INFO } from '@/shared/constants/data';
|
||||
import { hasLocale, Locale, NextIntlClientProvider } from 'next-intl';
|
||||
import { routing } from '@/shared/config/i18n/routing';
|
||||
import { notFound } from 'next/navigation';
|
||||
@@ -14,12 +12,6 @@ import QueryProvider from '@/shared/config/react-query/QueryProvider';
|
||||
import Script from 'next/script';
|
||||
import Provider from '@/features/providers/provider';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: PRODUCT_INFO.name,
|
||||
description: PRODUCT_INFO.description,
|
||||
icons: PRODUCT_INFO.favicon,
|
||||
};
|
||||
|
||||
type Props = {
|
||||
children: ReactNode;
|
||||
params: Promise<{ locale: Locale }>;
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import { getPosts } from '@/shared/config/api/testApi';
|
||||
import { PlagiarismCheckForm } from '@/widgets/fileUpload/ui/Plagiraismcheckform';
|
||||
import { HistoryPage } from '@/widgets/history';
|
||||
|
||||
export default async function Home() {
|
||||
const res = await getPosts({ _limit: 1 });
|
||||
console.log('SSR res', res.data);
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
<div className="bg-[#f4f5ffec]">
|
||||
<PlagiarismCheckForm />
|
||||
<HistoryPage />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user