v0.10.7 fixed UI settings

This commit is contained in:
2026-03-20 21:34:53 -04:00
parent 66fd4c5377
commit b224237cf7
7 changed files with 79 additions and 45 deletions

View File

@@ -10,6 +10,7 @@
import { useState, useEffect, useCallback } from 'react';
import { useAuth } from '../contexts/AuthContext.jsx';
import UserFooter from './UserFooter.jsx';
// ── Constants ─────────────────────────────────────────────────────────────────
@@ -335,7 +336,7 @@ function KeyEntry({ onSubmit }) {
// ── Main HostPanel ────────────────────────────────────────────────────────────
export default function HostPanel() {
export default function HostPanel({ onProfile, onHelp, onAbout }) {
const { user } = useAuth();
const [adminKey, setAdminKey] = useState(() => sessionStorage.getItem('jama-host-key') || '');
const [status, setStatus] = useState(null);
@@ -486,6 +487,11 @@ export default function HostPanel() {
</div>
))}
</div>
{/* User footer */}
<div className="sidebar-footer">
<UserFooter onProfile={onProfile} onHelp={onHelp} onAbout={onAbout} />
</div>
</div>
);
}