From 5608693c0669369246707480a451ccb4e611d30c Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 17 Dec 2021 09:40:22 +0800 Subject: [PATCH] Add: register button on manage page --- web/src/component/Manage.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/web/src/component/Manage.js b/web/src/component/Manage.js index 834e00e..8241cae 100644 --- a/web/src/component/Manage.js +++ b/web/src/component/Manage.js @@ -9,13 +9,22 @@ function Manage(props) {

Manage

Hi, {props.user.username}

{props.user.role === 0 && ( - +
+ + +
)} {props.user.role !== 0 && (