From 39e71470685a85fda50a555c6d488947ff368ffd Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Mon, 1 Jun 2026 17:55:46 -0400 Subject: [PATCH] misc: hoist PlayerBar to layout --- app/layout.tsx | 6 +++++- app/library/albums/page.tsx | 5 +---- app/library/artists/page.tsx | 5 +---- app/page.tsx | 5 +---- app/recently-added/page.tsx | 5 +---- app/recently-played/page.tsx | 5 +---- app/search/page.tsx | 5 +---- 7 files changed, 11 insertions(+), 25 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 41a37ff..a631403 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -5,6 +5,7 @@ import { ThemeProvider } from "@/components/theme-provider" import { cn } from "@/lib/utils"; import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar" import { AppSidebar } from "@/components/app-sidebar" +import { PlayerBar } from "@/components/player-bar" const inter = Inter({subsets:['latin'],variable:'--font-sans'}) @@ -28,7 +29,10 @@ export default function RootLayout({ - {children} + + {children} + + diff --git a/app/library/albums/page.tsx b/app/library/albums/page.tsx index 49bd9a6..beb1602 100644 --- a/app/library/albums/page.tsx +++ b/app/library/albums/page.tsx @@ -1,10 +1,9 @@ import { AlbumCard } from "@/components/album-card" -import { PlayerBar } from "@/components/player-bar" import { albums } from "@/lib/data" export default function Page() { return ( -
+

Albums

@@ -16,8 +15,6 @@ export default function Page() { ))}
- - ) } diff --git a/app/library/artists/page.tsx b/app/library/artists/page.tsx index 66ab27c..d92ff2b 100644 --- a/app/library/artists/page.tsx +++ b/app/library/artists/page.tsx @@ -1,10 +1,9 @@ import { ArtistCard } from "@/components/artist-card" -import { PlayerBar } from "@/components/player-bar" import { artists } from "@/lib/data" export default function Page() { return ( -
+

Artists

@@ -16,8 +15,6 @@ export default function Page() { ))}
- - ) } diff --git a/app/page.tsx b/app/page.tsx index 6f14bc1..a5b8df1 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,12 +1,11 @@ "use client" import { ContentCarousel } from "@/components/content-carousel" -import { PlayerBar } from "@/components/player-bar" import { recentlyAdded, recentlyPlayed } from "@/lib/data" export default function Page() { return ( -
+

Home

@@ -25,8 +24,6 @@ export default function Page() { />
- - ) } diff --git a/app/recently-added/page.tsx b/app/recently-added/page.tsx index 6a15360..29d0ccc 100644 --- a/app/recently-added/page.tsx +++ b/app/recently-added/page.tsx @@ -1,10 +1,9 @@ import { AlbumCard } from "@/components/album-card" -import { PlayerBar } from "@/components/player-bar" import { albums } from "@/lib/data" export default function Page() { return ( -
+

Recently Added

@@ -16,8 +15,6 @@ export default function Page() { ))}
- - ) } diff --git a/app/recently-played/page.tsx b/app/recently-played/page.tsx index 5dc5757..aee5994 100644 --- a/app/recently-played/page.tsx +++ b/app/recently-played/page.tsx @@ -1,10 +1,9 @@ import { AlbumCard } from "@/components/album-card" -import { PlayerBar } from "@/components/player-bar" import { albums } from "@/lib/data" export default function Page() { return ( -
+

Recently Played

@@ -16,8 +15,6 @@ export default function Page() { ))}
- - ) } diff --git a/app/search/page.tsx b/app/search/page.tsx index 7086b5a..3e72e92 100644 --- a/app/search/page.tsx +++ b/app/search/page.tsx @@ -1,13 +1,12 @@ "use client" import { AlbumCard } from "@/components/album-card" -import { PlayerBar } from "@/components/player-bar" import { albums } from "@/lib/data" import { SearchIcon } from "lucide-react" export default function Page() { return ( -
+
@@ -27,8 +26,6 @@ export default function Page() { ))}
- -
) }