Skip to content

Commit

Permalink
Uncomment player & showlist.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovipu committed Apr 9, 2024
1 parent 40753e2 commit 0146871
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import {
} from '@/contentful/client';
import { contentfulImageLoader } from '@/contentful/contentfulImageLoader';
import { IndexDocument, IndexQuery } from '@/contentful/graphql/index.graphql';
// import { Showlist } from '@/components/showlist';
// import Player from '@/components/player';
// import { fetchShowlist } from '@/scripts/google/client';
import { Showlist } from '@/components/showlist';
import Player from '@/components/player';
import { fetchShowlist } from '@/scripts/google/client';
import { Show } from '@/scripts/google/showlistHelpers';

const isPlayerLive = process.env.NEXT_PUBLIC_PLAYER_MODE === 'live';

Expand All @@ -32,8 +33,8 @@ interface IndexProps {
heroButtonText: string;
heroButtonLink: string;
navigationItems: NavigationItem[];
// showsByDate: Record<string, Show[]>;
// weekKeys: Record<string, string[]>;
showsByDate: Record<string, Show[]>;
weekKeys: Record<string, string[]>;
firstDecorativeImage: {
url?: string;
width?: number;
Expand Down Expand Up @@ -62,18 +63,18 @@ const Index: NextPage<IndexProps & PlayerControls> = ({
heroButtonText,
heroButtonLink,
navigationItems,
// showsByDate,
// weekKeys,
showsByDate,
weekKeys,
firstDecorativeImage,
secondDecorativeImage,
firstContent,
secondContent,
thirdContent,
sponsors,
// playing,
// onPlayPause,
// muted,
// onMute,
playing,
onPlayPause,
muted,
onMute,
}) => {
return (
<div className="min-h-screen w-full">
Expand All @@ -95,17 +96,17 @@ const Index: NextPage<IndexProps & PlayerControls> = ({
navigationItems={navigationItems}
isCompact={isPlayerLive}
/>
{/* {isPlayerLive && (
{isPlayerLive && (
<Player
playing={playing}
onPlayPause={onPlayPause}
muted={muted}
onMute={onMute}
showsByDate={showsByDate}
/>
)} */}
)}

{/* <Showlist showsByDate={showsByDate} weekKeys={weekKeys} /> */}
<Showlist showsByDate={showsByDate} weekKeys={weekKeys} />

{/* First section */}
<main className="flex flex-wrap-reverse items-center justify-center py-4 md:py-8">
Expand Down Expand Up @@ -174,7 +175,7 @@ export const getStaticProps: GetStaticProps<IndexProps> = async () => {

const navigationItems = await fetchNavigationItems();

// const { showsByDate, weekKeys } = await fetchShowlist();
const { showsByDate, weekKeys } = await fetchShowlist();

return {
props: {
Expand All @@ -184,8 +185,8 @@ export const getStaticProps: GetStaticProps<IndexProps> = async () => {
heroButtonText,
heroButtonLink,
navigationItems,
// showsByDate,
// weekKeys,
showsByDate,
weekKeys,
firstDecorativeImage,
secondDecorativeImage,
firstContent,
Expand Down

0 comments on commit 0146871

Please sign in to comment.