File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import cn from '@/lib/cn';
44import { getIsInIframe } from '@/lib/isInIframe' ;
55import { ReactNode } from 'react' ;
66
7- export default function BrowseLayout ( {
7+ export default async function BrowseLayout ( {
88 children,
99 artists,
1010 years,
@@ -19,7 +19,7 @@ export default function BrowseLayout({
1919 songs : ReactNode ;
2020 sources : ReactNode ;
2121} ) {
22- const isInIframe = getIsInIframe ( ) ;
22+ const isInIframe = await getIsInIframe ( ) ;
2323
2424 return (
2525 < Flex column className = "h-screen" >
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default async function NavBar() {
4242 < div className = "navigation relative flex h-[50px] max-h-[50px] min-h-[50px] grid-cols-3 justify-between border-b-[1px] border-b-[#aeaeae] bg-white text-foreground lg:grid" >
4343 < MainNavHeader
4444 artistSlugsToName = { artistSlugsToName }
45- indexOverride = { isInIframe ? '/wsp' : '' }
45+ indexOverride = { isInIframe ? '/wsp' : undefined }
4646 />
4747 < div className = "player min-w-[60%] flex-1 text-center lg:min-w-[44vw] xl:min-w-[38vw]" >
4848 < Player artistSlugsToName = { artistSlugsToName } />
You can’t perform that action at this time.
0 commit comments