* update default styling of widgets * [CodeFactor] Apply fixes * update widgets styles * fix eslint bug * update button colors * update primary button color * update primary button color * remove px in 0px in css * incorporate abhinav review feedbacks * fixed global styling of popover Co-authored-by: Pawan Kumar <pawankumar@Pawans-MacBook-Pro.local> Co-authored-by: codefactor-io <support@codefactor.io>
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import React from "react";
|
|
import EditorsRouter from "./routes";
|
|
import WidgetsEditor from "./WidgetsEditor";
|
|
import styled from "styled-components";
|
|
import Sidebar from "components/editorComponents/Sidebar";
|
|
import { Route, Switch } from "react-router";
|
|
import { BUILDER_URL } from "constants/routes";
|
|
|
|
import * as Sentry from "@sentry/react";
|
|
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});
|
|
`;
|
|
|
|
const MainContainer = () => {
|
|
return (
|
|
<Container>
|
|
<Sidebar />
|
|
<EditorContainer>
|
|
<Switch>
|
|
<SentryRoute exact path={BUILDER_URL} component={WidgetsEditor} />
|
|
<SentryRoute component={EditorsRouter} />
|
|
</Switch>
|
|
</EditorContainer>
|
|
</Container>
|
|
);
|
|
};
|
|
|
|
MainContainer.displayName = "MainContainer";
|
|
|
|
export default MainContainer;
|