fix: Fixed redundant key input fields and corrected formatting on the frontend. (#566)

* Eliminate redundant key input fields in the front-end.

* go / react Formatting.
This commit is contained in:
SkywalkerJi
2025-11-06 02:16:04 +09:00
committed by GitHub
parent 3f8df95c63
commit b99a54ef41
8 changed files with 221 additions and 159 deletions

View File

@@ -14,7 +14,11 @@ import { useAuth } from '../contexts/AuthContext'
import { useLanguage } from '../contexts/LanguageContext'
import { t } from '../i18n/translations'
export function LandingPage({ isAdminMode = false }: { isAdminMode?: boolean }) {
export function LandingPage({
isAdminMode = false,
}: {
isAdminMode?: boolean
}) {
const [showLoginModal, setShowLoginModal] = useState(false)
const { user, logout } = useAuth()
const { language, setLanguage } = useLanguage()
@@ -31,7 +35,7 @@ export function LandingPage({ isAdminMode = false }: { isAdminMode?: boolean })
onLanguageChange={setLanguage}
user={user}
onLogout={logout}
isAdminMode={isAdminMode}
isAdminMode={isAdminMode}
onPageChange={(page) => {
console.log('LandingPage onPageChange called with:', page)
if (page === 'competition') {