Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmatrix62 committed Apr 28, 2022
1 parent 9c2c390 commit 413680f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions web-src/src/app/pages/main-page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Layout, Notification } from "@douyinfe/semi-ui";
import Sider from "@douyinfe/semi-ui/lib/es/layout/Sider";
import { useObservableState } from "observable-hooks";
import React, { ReactNode, useContext, useEffect } from "react";
import { ReactNode, useContext, useEffect } from "react";
import { SharedSubjectContext } from "../context/shared-subjects";
import { MainFooter } from "../shared/main-footer";
import { MainNav } from "../shared/main-nav";
Expand All @@ -10,7 +10,7 @@ import { isTauriAppContext } from "../../App";
import "./main-page.scss";

export const MainPage = () => {
const { Header, Content } = Layout;
const { Content } = Layout;
const sharedSubs = useContext(SharedSubjectContext);
const isTauri = useContext(isTauriAppContext);
const [activeToolNode, setActiveToolNode] = useObservableState<ReactNode>(
Expand Down Expand Up @@ -59,11 +59,7 @@ export const MainPage = () => {
<isTauriAppContext.Consumer>
{(isTauriApp) => (
<Layout className="main-layout">
{!isTauriApp && (
<Header>
<MainNav />
</Header>
)}
{!isTauriApp && <MainNav />}
<Layout className="central-layout">
<Sider children={<ToolsSider />} />
<Content children={activeToolNode} />
Expand Down

0 comments on commit 413680f

Please sign in to comment.