diff --git a/src/components/App.tsx b/src/components/App.tsx index 714c349c8c..59729a2372 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -288,6 +288,7 @@ import { jotaiStore } from "../jotai"; import { activeConfirmDialogAtom } from "./ActiveConfirmDialog"; import { actionCreateContainerFromText } from "../actions/actionBoundText"; import BraveMeasureTextError from "./BraveMeasureTextError"; +import { Stats } from "./Stats"; const deviceContextInitialValue = { isSmScreen: false, @@ -647,6 +648,17 @@ class App extends React.Component { actionManager={this.actionManager} /> )} + {this.state.showStats && ( + { + this.actionManager.executeAction(actionToggleStats); + }} + renderCustomStats={renderCustomStats} + /> + )}
{this.renderCanvas()}
{" "} diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 7103d3adec..d5c53fe361 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -35,8 +35,6 @@ import "./Toolbar.scss"; import { PenModeButton } from "./PenModeButton"; import { trackEvent } from "../analytics"; import { useDevice } from "../components/App"; -import { Stats } from "./Stats"; -import { actionToggleStats } from "../actions/actionToggleStats"; import Footer from "./footer/Footer"; import { hostSidebarCountersAtom } from "./Sidebar/Sidebar"; import { jotaiScope } from "../jotai"; @@ -438,17 +436,6 @@ const LayerUI = ({ showExitZenModeBtn={showExitZenModeBtn} renderWelcomeScreen={renderWelcomeScreen} /> - {appState.showStats && ( - { - actionManager.executeAction(actionToggleStats); - }} - renderCustomStats={renderCustomStats} - /> - )} {appState.scrolledOutside && (