@@ -7,9 +7,8 @@ function Landing(): ReactElement {
const{user}=useContext(userContext);
constnavigate=useNavigate();
constloggedIn=user.id!==undefined;
constloggedIn=!!user.id;
consthasNren=loggedIn?!!user.nrens.length:false;
constactiveNren=hasNren?user.nrens[0]:'';
constmoveToSurvey=()=>{
...
...
@@ -21,6 +20,7 @@ function Landing(): ReactElement {
return (
<ContainerclassName="py-5 grey-container">
<Row>
{hasNren&&moveToSurvey()}
<divclassName="center-text">
<h1className="geant-header">THE GÉANT COMPENDIUM OF NRENS SURVEY</h1>
...
...
@@ -28,7 +28,7 @@ function Landing(): ReactElement {
<divclassName="wordwrap pt-4">
<pstyle={{textAlign:"center"}}>
Hello, Welcome to the GÉANT Compendium Survey.
NREN Compendium administrators can click here (link) to complete their registration to fill in the 2023 Compendium survey.
NREN Compendium administrators can login <ahref="/login">here</a> to complete their registration to fill in the 2023 Compendium survey.
Once your registration has been confirmed you will receive an email from the Compendium administration team.
If you are not sure whether you are a Compendium Administrator for your NREN, please contact your GÉANT Partner Relations relationship manager.
Thank you.
...
...
@@ -37,10 +37,12 @@ function Landing(): ReactElement {
<span>Current registration status:</span>
<br/>
<br/>
<p>
{loggedIn?"You are logged in":"You are not logged in"}
{!hasNren?", but your access to the survey has not been approved":moveToSurvey()}
</p>
<ul>
{loggedIn?<li><span>You are logged in</span></li>:<li><span>You are not logged in</span></li>}
{loggedIn&&!hasNren&&<li><span>Your access to the survey has not been approved</span></li>}
{loggedIn&&!hasNren&&<li><span>Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page</span></li>}