File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1- // import { useMemo } from 'react'
2- // import { GarlicHubAdapter } from './adapters/GarlicHubAdapter'
3- // import { useCMSAdapter } from './hooks/useCMSAdapter'
41import playlistData from './assets/playlist_data.json'
52import { useCurrentTimestamp } from './hooks/useCurrentTimestamp'
63import { usePlaylist } from './hooks/usePlaylist'
74import { usePlaylistCache } from './hooks/usePlaylistCache'
85import { PlaylistRenderer } from './PlaylistRenderer'
96
107export const App = ( ) => {
11- const currentTimestamp = useCurrentTimestamp ( )
12- // const cmsAdapter = useMemo(
13- // () => new GarlicHubAdapter('https://garlic-hub.com/smil-index', 5000),
14- // []
15- // )
16- // const cmsData = useCMSAdapter({ adapter: cmsAdapter })
8+ const timezone = 'America/Los_Angeles'
9+ const currentTimestamp = useCurrentTimestamp ( timezone )
1710 const { currentPlaylist, elapsedSinceStart } = usePlaylist ( playlistData , currentTimestamp )
1811 const { isPreloaded } = usePlaylistCache ( currentPlaylist )
1912
You can’t perform that action at this time.
0 commit comments