feat: home pages adapted to mobile
This commit is contained in:
+3
-1
@@ -13,6 +13,7 @@ import { removeDSP } from './dsp/dspShared';
|
||||
import { stopAllPolling } from './dsp/pollRegistry';
|
||||
import { loadSavedDSPs, saveDSPs, toSaved } from './dsp/dspStorage';
|
||||
import { DSPMode } from './features/dsp408/types';
|
||||
import { useIsMobile } from './hooks/useIsMobile';
|
||||
|
||||
function App() {
|
||||
const [dsps, setDsps] = useState<DSP[]>([]);
|
||||
@@ -22,6 +23,7 @@ function App() {
|
||||
const { notifications, notify, removeNotification, hoverNotification } = useNotifications();
|
||||
const connectedDspCount = dsps.filter((dsp) => isConnected(dsp)).length;
|
||||
const restoreStarted = useRef(false);
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
const activeDsp = dsps.find((d) => d.id === selected) ?? null;
|
||||
const activeInstance = activeDsp ? createDSPInstance(activeDsp, setDsps, notify) : null;
|
||||
@@ -70,7 +72,7 @@ function App() {
|
||||
}, [activeDsp?.id]);
|
||||
|
||||
return (
|
||||
<div className="app">
|
||||
<div className={`app${isMobile ? ' app--mobile' : ''}`}>
|
||||
<Notifications
|
||||
notifications={notifications}
|
||||
onRemove={removeNotification}
|
||||
|
||||
Reference in New Issue
Block a user