Skip to content
Snippets Groups Projects
Commit 9a76545e authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

use react-router links for admin pages

parent d63a6c4d
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -2101,6 +2101,17 @@
* @license MIT
*/
/**
* React Router DOM v6.11.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
/**
* React Router v6.11.2
*
......
import React, { ReactElement, useContext } from "react";
import { useNavigate } from "react-router-dom";
import { useNavigate, Link } from "react-router-dom";
import { Container, Row } from "react-bootstrap";
import { userContext } from "./providers/UserProvider";
......@@ -39,8 +39,8 @@ function Landing(): ReactElement {
<br />
{isAdmin ? <ul>
<li><span>You are logged in as a Compendium Administrator</span></li>
<li><span>Click <a href="/survey/admin/surveys">here</a> to access the survey management page.</span></li>
<li><span>Click <a href="/survey/admin/users">here</a> to access the user management page.</span></li>
<li><span>Click <Link to="/survey/admin/surveys">here</Link> to access the survey management page.</span></li>
<li><span>Click <Link to="/survey/admin/users">here</Link> to access the user management page.</span></li>
</ul> : <ul>
{!isAdmin && hasNren && moveToSurvey()}
{loggedIn ? <li><span>You are logged in</span></li> : <li><span>You are not logged in</span></li>}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment