diff --git a/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx b/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx index 9eccf81818..65715e04c7 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogLayout.tsx @@ -15,23 +15,25 @@ */ import React, { FC } from 'react'; -import { Header, HomepageTimer, Page, pageTheme } from '@backstage/core'; +import { + Header, + HomepageTimer, + Page, + pageTheme, + identityApiRef, + useApi, +} from '@backstage/core'; import { getTimeBasedGreeting } from './utils/timeUtil'; const CatalogLayout: FC<{}> = props => { const { children } = props; - // const profile = useProfile(); - const profile = { givenName: 'friend' }; const greeting = getTimeBasedGreeting(); + const identityApi = useApi(identityApiRef); return (