mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
Port navigation.
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
import { OverlappingPanels } from "react-overlapping-panels";
|
||||
import { Docked, OverlappingPanels } from "react-overlapping-panels";
|
||||
import { isTouchscreenDevice } from "../lib/isTouchscreenDevice";
|
||||
import { Switch, Route } from "react-router-dom";
|
||||
|
||||
import LeftSidebar from "../components/navigation/LeftSidebar";
|
||||
import RightSidebar from "../components/navigation/RightSidebar";
|
||||
|
||||
import Home from './home/Home';
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<OverlappingPanels
|
||||
width="100vw"
|
||||
height="100%">
|
||||
height="100%"
|
||||
leftPanel={{ width: 292, component: <LeftSidebar /> }}
|
||||
rightPanel={{ width: 240, component: <RightSidebar /> }}
|
||||
docked={isTouchscreenDevice ? Docked.None : Docked.Left}>
|
||||
<Switch>
|
||||
<Route path="/">
|
||||
<Home />
|
||||
|
||||
Reference in New Issue
Block a user