@@ -45,6 +45,7 @@ import { DeckPage } from './pages/Deck'
4545import { TimelineProvider } from './context/TimelineProvider'
4646import { InspectorProvider } from './context/Inspector'
4747import { ProfileProvider } from './context/ProfileContext'
48+ import { AudioPlayerProvider } from './context/AudioPlayer'
4849
4950const SwitchMasterToSub = lazy ( ( ) => import ( './components/SwitchMasterToSub' ) )
5051
@@ -489,46 +490,47 @@ function App(): JSX.Element {
489490 flex : 1
490491 } }
491492 >
492- < Paper
493- elevation = { isDeckPage ? 0 : 3 }
494- sx = { {
495- flexGrow : '1' ,
496- margin : { xs : 0.5 , sm : 1 } ,
497- mb : { xs : 0 , sm : '10px' } ,
498- display : 'flex' ,
499- flexFlow : 'column' ,
500- borderRadius : isDeckPage ? 0 : 2 ,
501- overflow : 'hidden' ,
502- background : 'none'
503- } }
504- >
505- < Routes >
506- < Route index element = { < ListPage /> } />
507- < Route path = "/:id" element = { < EntityPage /> } />
508- < Route path = "/intent" element = { < ListPage /> } />
509- < Route path = "/settings/*" element = { < Settings /> } />
510- < Route path = "/:id/media" element = { < EntityPage /> } />
511- < Route path = "/:id/activity" element = { < EntityPage /> } />
512- < Route path = "/:id/profile/:profileid" element = { < EntityPage /> } />
513- < Route path = "/:id/profile/:profileid/media" element = { < EntityPage /> } />
514- < Route path = "/:id/profile/:profileid/activity" element = { < EntityPage /> } />
515- < Route path = "/:authorID/:messageID" element = { < MessagePage /> } />
516- < Route path = "/timeline/:id" element = { < TimelinePage /> } />
517- < Route path = "/contacts" element = { < ContactsPage /> } />
518- < Route path = "/explorer/:tab" element = { < ExplorerPlusPage /> } />
519- < Route path = "/classicexplorer/:tab" element = { < Explorer /> } />
520- < Route
521- path = "/notifications"
522- element = { < Notifications latestNotification = { latestNotificationDate } /> }
523- />
524- < Route path = "/ap/:id" element = { < ApUserPage /> } />
525- < Route path = "/devtool" element = { < Devtool /> } />
526- < Route path = "/subscriptions" element = { < ManageSubsPage /> } />
527- < Route path = "/concord/*" element = { < ConcordPage /> } />
528- < Route path = "/tutorial" element = { < Tutorial /> } />
529- < Route path = "/deck" element = { < DeckPage /> } />
530- </ Routes >
531- </ Paper >
493+ < AudioPlayerProvider >
494+ < Paper
495+ elevation = { isDeckPage ? 0 : 3 }
496+ sx = { {
497+ flexGrow : '1' ,
498+ margin : { xs : 0.5 , sm : 1 } ,
499+ display : 'flex' ,
500+ flexFlow : 'column' ,
501+ borderRadius : isDeckPage ? 0 : 2 ,
502+ overflow : 'hidden' ,
503+ background : 'none'
504+ } }
505+ >
506+ < Routes >
507+ < Route index element = { < ListPage /> } />
508+ < Route path = "/:id" element = { < EntityPage /> } />
509+ < Route path = "/intent" element = { < ListPage /> } />
510+ < Route path = "/settings/*" element = { < Settings /> } />
511+ < Route path = "/:id/media" element = { < EntityPage /> } />
512+ < Route path = "/:id/activity" element = { < EntityPage /> } />
513+ < Route path = "/:id/profile/:profileid" element = { < EntityPage /> } />
514+ < Route path = "/:id/profile/:profileid/media" element = { < EntityPage /> } />
515+ < Route path = "/:id/profile/:profileid/activity" element = { < EntityPage /> } />
516+ < Route path = "/:authorID/:messageID" element = { < MessagePage /> } />
517+ < Route path = "/timeline/:id" element = { < TimelinePage /> } />
518+ < Route path = "/contacts" element = { < ContactsPage /> } />
519+ < Route path = "/explorer/:tab" element = { < ExplorerPlusPage /> } />
520+ < Route path = "/classicexplorer/:tab" element = { < Explorer /> } />
521+ < Route
522+ path = "/notifications"
523+ element = { < Notifications latestNotification = { latestNotificationDate } /> }
524+ />
525+ < Route path = "/ap/:id" element = { < ApUserPage /> } />
526+ < Route path = "/devtool" element = { < Devtool /> } />
527+ < Route path = "/subscriptions" element = { < ManageSubsPage /> } />
528+ < Route path = "/concord/*" element = { < ConcordPage /> } />
529+ < Route path = "/tutorial" element = { < Tutorial /> } />
530+ < Route path = "/deck" element = { < DeckPage /> } />
531+ </ Routes >
532+ </ Paper >
533+ </ AudioPlayerProvider >
532534 < Box
533535 sx = { {
534536 display : {
0 commit comments