Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aee02a4

Browse files
committed
remove left of edit and header
1 parent a05d0b4 commit aee02a4

File tree

10 files changed

+53
-1565
lines changed

10 files changed

+53
-1565
lines changed

viewer/packages/lowcoder/src/components/PageSkeleton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { default as Layout } from "antd/es/layout";
22
import { default as Skeleton } from "antd/es/skeleton";
33
import MainContent from "components/layout/MainContent";
44
import SideBar from "components/layout/SideBar";
5-
import Header from "./layout/Header";
65
import { Logo, LogoWithName, LogoHome } from "@lowcoder-ee/assets/images";
76
import styled from "styled-components";
87
import { useSelector } from "react-redux";

viewer/packages/lowcoder/src/components/layout/Header.tsx

Lines changed: 0 additions & 60 deletions
This file was deleted.

viewer/packages/lowcoder/src/components/layout/Layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Route, Switch } from "react-router-dom";
22
import { default as AntdLayout } from "antd/es/layout";
3-
import { AppHeader } from "pages/common/header";
43
import * as React from "react";
54
import { ReactElement } from "react";
65
import { HelpDropdown } from "pages/common/help";
@@ -46,7 +45,6 @@ export function Layout(props: LayoutProps) {
4645

4746
return (
4847
<AntdLayout style={{ height: "100%" }}>
49-
<AppHeader />
5048
<HelpDropdown />
5149
<AntdLayout>
5250
<SideBarV2 className={CNSidebar}>

viewer/packages/lowcoder/src/comps/editorState.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { NameAndExposingInfo } from "./utils/exposingTypes";
1717
import { checkName } from "./utils/rename";
1818
import { trans } from "i18n";
1919
import type { UiLayoutType } from "./comps/uiComp";
20-
import { getEditorModeStatus, saveCollisionStatus } from "util/localStorageUtil";
20+
import { saveCollisionStatus } from "util/localStorageUtil";
2121

2222
type RootComp = InstanceType<typeof RootCompTmp>;
2323

@@ -64,7 +64,7 @@ export class EditorState {
6464
constructor(
6565
rootComp: RootComp,
6666
setEditorState: (fn: (editorState: EditorState) => EditorState) => void,
67-
initialEditorModeStatus: string = getEditorModeStatus(),
67+
initialEditorModeStatus = "view",
6868
) {
6969
this.rootComp = rootComp;
7070
this.setEditorState = setEditorState;

viewer/packages/lowcoder/src/pages/common/commonLayout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Route, Switch, useLocation } from "react-router-dom";
22
import { default as Layout } from "antd/es/layout";
3-
import { AppHeader } from "pages/common/header";
43
import { Menu } from "lowcoder-design";
54
import history from "util/history";
65
import styled from "styled-components";
@@ -73,7 +72,6 @@ export function CommonLayout(props: LayoutProps) {
7372

7473
return (
7574
<Layout id={props.id}>
76-
<AppHeader />
7775
<HelpDropdown />
7876
<Layout>
7977
<SideBar className={CNSidebar} theme="light" width={240}>

0 commit comments

Comments
 (0)