Add: register button on manage page
This commit is contained in:
@@ -9,13 +9,22 @@ function Manage(props) {
|
|||||||
<h2>Manage</h2>
|
<h2>Manage</h2>
|
||||||
<p>Hi, {props.user.username}</p>
|
<p>Hi, {props.user.username}</p>
|
||||||
{props.user.role === 0 && (
|
{props.user.role === 0 && (
|
||||||
<button
|
<div>
|
||||||
onClick={() => {
|
<button
|
||||||
navigate("/manage/login");
|
onClick={() => {
|
||||||
}}
|
navigate("/manage/login");
|
||||||
>
|
}}
|
||||||
Login
|
>
|
||||||
</button>
|
Login
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
onClick={() => {
|
||||||
|
navigate("/manage/register");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Register
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
{props.user.role !== 0 && (
|
{props.user.role !== 0 && (
|
||||||
<div className="horizontal">
|
<div className="horizontal">
|
||||||
|
|||||||
Reference in New Issue
Block a user