File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { gainToDb } from 'tone';
66import { DEFAULT_SOUND_TYPE , DEFAULT_SOUND_VOLUME } from './constants' ;
77import { RotationRequest } from './RotationRequest' ;
88import { useIsPortrait } from './hooks/useIsPortrait' ;
9+ import { Box } from '@mui/material' ;
910
1011export function AppWithSound ( ) : React . ReactElement {
1112 const [ soundType , setSoundType ] =
@@ -23,13 +24,15 @@ export function AppWithSound(): React.ReactElement {
2324 return (
2425 < >
2526 { isPortrait && < RotationRequest /> }
26- < App
27- playSound = { play }
28- stopSounds = { stop }
29- soundType = { soundType }
30- setSoundType = { setSoundType }
31- setVolume = { setVolume }
32- />
27+ < Box sx = { { display : isPortrait ? 'none' : 'block' } } >
28+ < App
29+ playSound = { play }
30+ stopSounds = { stop }
31+ soundType = { soundType }
32+ setSoundType = { setSoundType }
33+ setVolume = { setVolume }
34+ />
35+ </ Box >
3336 </ >
3437 ) ;
3538}
You can’t perform that action at this time.
0 commit comments