Skip to content
Snippets Groups Projects
Commit 99852b65 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

remove duplicate username in the home page

parent bae19ce1
Branches
Tags
No related merge requests found
Pipeline #89628 failed
import { EuiPageHeader, EuiSpacer } from '@elastic/eui'; import { WfoStartPage } from '@orchestrator-ui/orchestrator-ui-components';
import {
WfoStartPage,
useWfoSession,
} from '@orchestrator-ui/orchestrator-ui-components';
import { useTranslations } from 'next-intl';
import React from 'react'; import React from 'react';
export function Index() { export function Index() {
const { session } = useWfoSession(); return <WfoStartPage />;
const t = useTranslations('main');
const username = session?.user?.name || '';
return (
<>
<EuiPageHeader pageTitle={`${t('welcome')} ${username}`} />
<EuiSpacer />
<WfoStartPage />
</>
);
} }
export default Index; export default Index;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment