Skip to content

Commit

Permalink
refactor: remove dup code (#10563)
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Aug 22, 2023
1 parent e3b40ff commit de4d855
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/app/src/MainUI.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Suspense, lazy, useEffect } from 'react'
import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom'
import { DisableShadowRootContext, ShadowRootIsolation } from '@masknet/theme'
import { SiteAdaptorContextRef } from '@masknet/plugin-infra/content-script'
import { DashboardForDesktop } from './components/DashboardDesktop.js'
import { DashboardForMobile } from './components/DashboardMobile.js'
Expand Down Expand Up @@ -40,11 +39,7 @@ export function MainUI() {
</div>
</BrowserRouter>

<DisableShadowRootContext.Provider value={false}>
<ShadowRootIsolation>
<PageInspectorRender />
</ShadowRootIsolation>
</DisableShadowRootContext.Provider>
<PageInspectorRender />
</Suspense>
</DashboardContext.Provider>
)
Expand Down

0 comments on commit de4d855

Please sign in to comment.