mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-12 23:36:55 +08:00
fix: admin logout button visibility (#650)
This commit is contained in:
@@ -445,7 +445,7 @@ export default function HeaderBar({
|
|||||||
{user.email}
|
{user.email}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{!isAdminMode && onLogout && (
|
{onLogout && (
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
onLogout()
|
onLogout()
|
||||||
@@ -882,7 +882,7 @@ export default function HeaderBar({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{!isAdminMode && onLogout && (
|
{onLogout && (
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
onLogout()
|
onLogout()
|
||||||
|
|||||||
Reference in New Issue
Block a user