Update site navigation and logout functionality

Refactors client-side navigation to use `wouter`'s `setLocation` instead of `window.location.href` for smoother transitions and improves the logout process by making it an asynchronous POST request with proper error handling and state invalidation. Also adds an "Auctions" button to the main navigation bar on multiple pages.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 069d4324-6c40-4355-955e-c714a50de1ea
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/069d4324-6c40-4355-955e-c714a50de1ea/bLfICpO
This commit is contained in:
kimjaehyeon0101
2025-09-29 21:18:33 +00:00
parent 00b92a8a45
commit d99a0580e6
7 changed files with 113 additions and 46 deletions

View File

@ -14,6 +14,7 @@ import AuctionCard from "@/components/AuctionCard";
import type { Auction, MediaOutlet } from "@shared/schema";
import { BookOpen } from "lucide-react";
import { Link } from "wouter";
import Footer from "@/components/Footer";
export default function Auctions() {
const { user, isAuthenticated } = useAuth();
@ -157,7 +158,7 @@ export default function Auctions() {
};
return (
<div className="min-h-screen bg-background">
<div className="flex flex-col min-h-screen bg-background">
{/* Header */}
<header className="bg-card border-b border-border sticky top-0 z-50">
<div className="max-w-7xl mx-auto px-6 py-4">
@ -215,7 +216,7 @@ export default function Auctions() {
</div>
</header>
<main className="max-w-7xl mx-auto px-6 py-8">
<main className="flex-1 max-w-7xl mx-auto px-6 py-8 w-full">
{/* Page Header */}
<div className="mb-8">
<div className="flex items-center justify-between mb-4">
@ -418,6 +419,7 @@ export default function Auctions() {
)}
</DialogContent>
</Dialog>
<Footer />
</div>
);
}