From 9334c06c14bfad6d333f3a14f927563c5e4b6e05 Mon Sep 17 00:00:00 2001
From: Stein Elgethun <stein.elgethun@usit.uio.no>
Date: Fri, 22 Oct 2021 13:19:21 +0200
Subject: [PATCH] Remove username from invite page

Will be shown in header, so not needed on page as well

Issue: GREG-75
---
 frontend/src/routes/invite/index.tsx | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/frontend/src/routes/invite/index.tsx b/frontend/src/routes/invite/index.tsx
index 34af6bd2..ba43e2d7 100644
--- a/frontend/src/routes/invite/index.tsx
+++ b/frontend/src/routes/invite/index.tsx
@@ -1,6 +1,5 @@
 import { useTranslation } from 'react-i18next'
 import Page from 'components/page'
-import { useUserContext } from 'contexts'
 
 import { styled } from '@mui/material/styles'
 
@@ -13,14 +12,12 @@ const FlexDiv = styled('div')(() => ({
 }))
 
 function Invite() {
-  const { user } = useUserContext()
   const { t } = useTranslation(['invite'])
 
   return (
     <Page>
       <h1>{t('header')}</h1>
       <p>
-        {user.first_name} {user.last_name}
         {t('description')}
       </p>
       <FlexDiv>
-- 
GitLab