Skip to content

Commit 58b4648

Browse files
committed
refactor: remove unused props
1 parent b06c5ca commit 58b4648

File tree

5 files changed

+5
-27
lines changed

5 files changed

+5
-27
lines changed

src/components/layout/AppHeader.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactNode, useRef, useCallback } from "react";
1+
import { useRef, useCallback } from "react";
22
import { TooltipProvider } from "@/components/ui/tooltip";
33
import { useScrollVisibility } from "@/hooks/useScrollVisibility";
44
import { TopBar } from "./AppHeader/TopBar";
@@ -12,26 +12,19 @@ interface AppHeaderProps {
1212
// Page content
1313
title?: string;
1414
logoUrl?: string | null;
15-
subtitle?: string;
16-
description?: string;
1715

1816
// Navigation options
1917
showGroupsButton?: boolean;
20-
21-
// Custom content section
22-
children?: ReactNode;
2318
}
2419

2520
export function AppHeader({
2621
showBackButton = false,
2722
backLabel = "Back",
2823
title,
29-
// subtitle,
30-
// description,
24+
3125
logoUrl,
32-
// actions,
26+
3327
showGroupsButton = false,
34-
// children,
3528
}: AppHeaderProps) {
3629
// Track visibility of logo specifically for festival context in top bar
3730
const titleRef = useRef<HTMLDivElement | null>(null);

src/pages/EditionSelection.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ export default function EditionSelection() {
8484
showBackButton
8585
backLabel="Back to Festivals"
8686
title={festival.name}
87-
subtitle="No editions available"
88-
description="There are currently no editions available for voting."
8987
/>
9088

9189
<div className="flex items-center justify-center mt-16">
@@ -146,8 +144,6 @@ export default function EditionSelection() {
146144
showBackButton
147145
backLabel="Back to Festivals"
148146
title={festival.name}
149-
subtitle="Choose Festival Edition"
150-
description="Select which edition of the festival you want to explore and vote on."
151147
/>
152148

153149
<div className="mt-12 grid gap-6 md:grid-cols-2 lg:grid-cols-3">

src/pages/FestivalSelection.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ export default function FestivalSelection() {
7676
return (
7777
<div className="min-h-screen bg-app-gradient">
7878
<div className="container mx-auto px-4 py-8">
79-
<AppHeader
80-
title="UpLine"
81-
subtitle="Collaborative Festival Voting"
82-
description="Choose a festival to start voting and collaborating with your community."
83-
/>
79+
<AppHeader title="UpLine" />
8480

8581
<div className="mt-12 grid gap-6 md:grid-cols-2 lg:grid-cols-3">
8682
{availableFestivals.map((festival: Festival) => (

src/pages/admin/AdminLayout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ export default function AdminLayout() {
7474
showBackButton
7575
backLabel="Back to app"
7676
title="Admin Dashboard"
77-
subtitle="Platform Management"
78-
description="Manage artists, genres, and admin permissions"
7977
/>
8078

8179
<div className="mt-8">

src/pages/groups/Groups/GroupsHeader.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ import { Plus } from "lucide-react";
55
export function GroupsHeader({ onCreate }: { onCreate: () => void }) {
66
return (
77
<div>
8-
<AppHeader
9-
showBackButton
10-
backLabel="Back to Artists"
11-
title="My Groups"
12-
subtitle="Create and manage your festival groups"
13-
/>
8+
<AppHeader showBackButton backLabel="Back to Artists" title="My Groups" />
149
<div className="flex justify-between items-center mb-6">
1510
<div />
1611
<Button

0 commit comments

Comments
 (0)