Clean up Dashboard by removing placeholder cards
Remove unused stat-cards and simplify Dashboard to empty state, ready for future content. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import { useAuth } from '../contexts/AuthContext';
|
||||
import { useTranslation } from '../contexts/LanguageContext';
|
||||
import { useSidebar } from '../contexts/SidebarContext';
|
||||
import '../styles/Dashboard.css';
|
||||
|
||||
export default function Dashboard() {
|
||||
const { user } = useAuth();
|
||||
const { t } = useTranslation();
|
||||
const { toggleMobileMenu } = useSidebar();
|
||||
|
||||
@@ -23,49 +20,7 @@ export default function Dashboard() {
|
||||
</div>
|
||||
|
||||
<div className="page-content">
|
||||
<div className="stats-grid">
|
||||
<div className="stat-card">
|
||||
<h3>{t.dashboard.profile}</h3>
|
||||
<p>
|
||||
<strong>{t.auth.username}:</strong> <span className="selectable">{user?.username}</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>{t.auth.email}:</strong> <span className="selectable">{user?.email}</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>{t.dashboard.userId}:</strong> <span className="selectable">{user?.id}</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>{t.dashboard.status}:</strong>{' '}
|
||||
<span className={user?.is_active ? 'status-active' : 'status-inactive'}>
|
||||
{user?.is_active ? t.dashboard.active : t.dashboard.inactive}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="stat-card">
|
||||
<h3>{t.features.feature1}</h3>
|
||||
<p>{t.features.comingSoon}</p>
|
||||
</div>
|
||||
|
||||
<div className="stat-card">
|
||||
<h3>{t.features.feature2}</h3>
|
||||
<p>{t.features.comingSoon}</p>
|
||||
</div>
|
||||
|
||||
<div className="stat-card">
|
||||
<h3>{t.features.feature3}</h3>
|
||||
<p>{t.features.comingSoon}</p>
|
||||
</div>
|
||||
|
||||
{user?.is_superuser && (
|
||||
<div className="stat-card admin-card">
|
||||
<h3>{t.admin.panel}</h3>
|
||||
<p>{t.admin.userManagement} - {t.features.comingSoon}</p>
|
||||
<p>{t.admin.systemSettings} - {t.features.comingSoon}</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{/* Dashboard content */}
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user