Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
import React from 'react';

import { useTranslations } from 'next-intl';

import { EuiPageHeader, EuiSpacer } from '@elastic/eui';
import {
WfoStartPage,
useWfoSession,
} from '@orchestrator-ui/orchestrator-ui-components';
import { WfoStartPage } from '@orchestrator-ui/orchestrator-ui-components';

export function Index() {
const { session } = useWfoSession();
const t = useTranslations('main');
const username = session?.user?.name || '';

return (
<>
<EuiPageHeader pageTitle={`${t('welcome')} ${username}`} />
<EuiSpacer />
<WfoStartPage />
</>
);
return <WfoStartPage />;
}

export default Index;