Skip to content

Commit

Permalink
feat: set assistant as front page
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Oct 31, 2023
1 parent 24379ef commit 4f99cb0
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
import DefaultLayout from '@atb/layouts/default';
import { WithGlobalData, withGlobalData } from '@atb/layouts/global-data';
import { CommonText, useTranslation } from '@atb/translations';
import type { NextPage } from 'next';
import AssistantPage, { getServerSideProps } from './assistant';

function IndexContent() {
const { t } = useTranslation();
return <h1>{t(CommonText.Titles.siteTitle)}</h1>;
}

type IndexProps = WithGlobalData<{}>;
const Index: NextPage<IndexProps> = (props) => {
return (
<DefaultLayout {...props}>
<IndexContent />
</DefaultLayout>
);
};

export default Index;

export const getServerSideProps = withGlobalData();
export default AssistantPage;
export { getServerSideProps };

0 comments on commit 4f99cb0

Please sign in to comment.