Dev remove admin mode (#723)

* feat: remove admin mode
* feat: bugfix
---------
Co-authored-by: icy <icyoung520@gmail.com>
This commit is contained in:
Icyoung
2025-11-07 23:37:23 +08:00
committed by GitHub
parent 9ad3e99645
commit 062184054d
16 changed files with 160 additions and 180 deletions

View File

@@ -24,7 +24,7 @@ import { t } from '../i18n/translations'
export function FAQPage() {
const { language, setLanguage } = useLanguage()
const { user, logout } = useAuth()
const { config: systemConfig } = useSystemConfig()
useSystemConfig() // Load system config but don't use it
return (
<div
@@ -38,8 +38,7 @@ export function FAQPage() {
onLanguageChange={setLanguage}
user={user}
onLogout={logout}
isAdminMode={systemConfig?.admin_mode}
onPageChange={(page) => {
onPageChange={(page) => {
if (page === 'competition') {
window.history.pushState({}, '', '/competition')
window.location.href = '/competition'