* disable delete icon for default * page properties style updates * minor style updates * remove uneccessary imports * update draggable list api * style updates * remove unused variable * style updates * update edit icon * integrate sorting page api * fix colors * remove console.log * add link to switch page in page list item * remove unused import * revert draggable list code * remove console.log * fix draggablelist component reorder issue * remove draggablepagelist * fix rerender of draggablelist Co-authored-by: root <root@DESKTOP-9GENCK0.localdomain>
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import React from "react";
|
|
import styled from "styled-components";
|
|
import * as Sentry from "@sentry/react";
|
|
import { Route, Switch } from "react-router";
|
|
|
|
import EditorsRouter from "./routes";
|
|
import WidgetsEditor from "./WidgetsEditor";
|
|
import { BUILDER_URL } from "constants/routes";
|
|
import Sidebar from "components/editorComponents/Sidebar";
|
|
|
|
const SentryRoute = Sentry.withSentryRouting(Route);
|
|
|
|
const Container = styled.div`
|
|
display: flex;
|
|
height: calc(100vh - ${(props) => props.theme.smallHeaderHeight});
|
|
background-color: ${(props) => props.theme.appBackground};
|
|
`;
|
|
|
|
const EditorContainer = styled.div`
|
|
position: relative;
|
|
width: calc(100vw - ${(props) => props.theme.sidebarWidth});
|
|
`;
|
|
|
|
function MainContainer() {
|
|
return (
|
|
<Container>
|
|
<Sidebar />
|
|
<EditorContainer>
|
|
<Switch>
|
|
<SentryRoute component={WidgetsEditor} exact path={BUILDER_URL} />
|
|
<SentryRoute component={EditorsRouter} />
|
|
</Switch>
|
|
</EditorContainer>
|
|
</Container>
|
|
);
|
|
}
|
|
|
|
MainContainer.displayName = "MainContainer";
|
|
|
|
export default MainContainer;
|