Fix: manage page button horizontal

This commit is contained in:
2021-12-16 11:43:23 +08:00
parent 435e3605f7
commit b0e57099ba

View File

@@ -18,6 +18,7 @@ function Manage(props) {
</button>
)}
{props.user.role !== 0 && (
<div className="horizontal">
<button
onClick={() => {
navigate(`/manage/users/${props.user.id}`);
@@ -25,8 +26,6 @@ function Manage(props) {
>
Edit
</button>
)}
{props.user.role !== 0 && (
<button
onClick={() => {
fetch("/api/v1/logout")
@@ -42,6 +41,7 @@ function Manage(props) {
>
Logout
</button>
</div>
)}
<hr />
<div className="horizontal">