Files
tom goriunovandGitHub c58a3fdf63 refactor page layout components (#1087)
* 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
2023-08-15 19:28:00 -04:00

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';