Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions frontend/src/pages/DashboardPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import DashboardExecutiveSummary from "../components/dashboard/DashboardExecutiv
import LoaderSwitcher from "../components/shared/loaders/LoaderSwitcher";

export default function DashboardPage() {
const { user, loading, logout } = useAuth();
const navigate = useNavigate();
const { user, loading } = useAuth();
const [modalOpen, setModalOpen] = useState(false);

const {
Expand All @@ -23,11 +22,6 @@ export default function DashboardPage() {
connectError,
} = useCodeforces(true);

const handleLogout = () => {
logout();
navigate("/");
};

if (loading) {
return <LoaderSwitcher />;
}
Expand All @@ -44,12 +38,6 @@ export default function DashboardPage() {
Welcome back, {user?.name || "Engineer"}.
</p>
</div>
<button
onClick={handleLogout}
className="px-6 sm:px-8 py-3 sm:py-4 border-4 border-black bg-white text-black font-black uppercase tracking-widest hover:bg-black hover:text-white transition-colors rounded-none w-full md:w-auto"
>
Logout
</button>
</header>

{/* AI Executive Summary - The Hero of the Dashboard */}
Expand Down