feat: add editor theme switch.

This commit is contained in:
jaywcjlove
2022-09-02 17:06:30 +08:00
parent cbaad4e0fc
commit e9b3b60f6d
7 changed files with 127 additions and 9 deletions

View File

@@ -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>,
);