mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* update csv export text * fix pw tests * base layout and customization for home page and search results page * refactor rest of the pages * refactor AppError * move header padding to layout * move nextjs utils to separate folder * combine PageServer and Page * make useQueryClientConfig hook * add tests * remove unused var * fix envs for pw * fix pw tests
29 lines
570 B
TypeScript
29 lines
570 B
TypeScript
import React from 'react';
|
|
|
|
import type { NextPageWithLayout } from 'nextjs/types';
|
|
|
|
import PageNextJs from 'nextjs/PageNextJs';
|
|
|
|
import Home from 'ui/pages/Home';
|
|
import LayoutHome from 'ui/shared/layout/LayoutHome';
|
|
|
|
const Page: NextPageWithLayout = () => {
|
|
return (
|
|
<PageNextJs pathname="/">
|
|
<Home/>
|
|
</PageNextJs>
|
|
);
|
|
};
|
|
|
|
Page.getLayout = function getLayout(page: React.ReactElement) {
|
|
return (
|
|
<LayoutHome>
|
|
{ page }
|
|
</LayoutHome>
|
|
);
|
|
};
|
|
|
|
export default Page;
|
|
|
|
export { base as getServerSideProps } from 'nextjs/getServerSideProps';
|