mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-12 16:28:48 +08:00
feat: add editor theme switch.
This commit is contained in:
@@ -5,6 +5,7 @@ import BackToUp from '@uiw/react-back-to-top';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
import { createGlobalStyle } from 'styled-components';
|
||||
import App from './App';
|
||||
import { Provider } from './store/context';
|
||||
|
||||
export const GlobalStyle = createGlobalStyle`
|
||||
[data-color-mode*='dark'], [data-color-mode*='dark'] body {
|
||||
@@ -56,6 +57,8 @@ root.render(
|
||||
<Toaster />
|
||||
<BackToUp>Top</BackToUp>
|
||||
<GlobalStyle />
|
||||
<App />
|
||||
<Provider>
|
||||
<App />
|
||||
</Provider>
|
||||
</HashRouter>,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user