File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed
Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1+ import React , { ReactNode } from "react" ;
2+ import { arcoLocale } from "@App/locales/arco" ;
3+ import i18n from "@App/locales/locales" ;
4+ import { ConfigProvider } from "@arco-design/web-react" ;
5+
6+ const PopupLayout : React . FC < {
7+ children : ReactNode ;
8+ } > = ( { children } ) => {
9+ return (
10+ < ConfigProvider locale = { arcoLocale ( i18n . language ) } >
11+ < div
12+ style = { {
13+ borderBottom : "1px solid var(--color-neutral-3)" ,
14+ } }
15+ >
16+ { children }
17+ </ div >
18+ </ ConfigProvider >
19+ ) ;
20+ } ;
21+
22+ export default PopupLayout ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { LoggerDAO } from "@App/app/repo/logger";
1515import { switchLight } from "../components/layout/MainLayout" ;
1616import App from "./App" ;
1717import "@App/locales/locales" ;
18+ import PopupLayout from "../components/layout/PopupLayout" ;
1819
1920migrate ( ) ;
2021// 初始化日志组件
@@ -37,11 +38,7 @@ IoC.registerInstance(SystemConfig, new SystemConfig(con));
3738switchLight ( localStorage . lightMode || "auto" ) ;
3839
3940ReactDOM . createRoot ( document . getElementById ( "root" ) as HTMLElement ) . render (
40- < div
41- style = { {
42- borderBottom : "1px solid var(--color-neutral-3)" ,
43- } }
44- >
41+ < PopupLayout >
4542 < App />
46- </ div >
43+ </ PopupLayout >
4744) ;
You can’t perform that action at this time.
0 commit comments