add prettier
This commit is contained in:
1 parent
6a9a45a4cc
commit
07fc6c0b6c
35 files changed
+530
-461
No files matched your search
+16
-15
@@ -1,22 +1,23 @@
|
||||
import {useState} from 'react';
|
||||
import {ConfigProvider} from 'antd';
|
||||
import {Context} from '../store';
|
||||
import Routers from './Routers';
|
||||
import {lightTheme} from '../constants/theme.ts';
|
||||
import { ConfigProvider } from 'antd'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { lightTheme } from '../constants/theme.ts'
|
||||
import { Context } from '../store'
|
||||
import Routers from './Routers'
|
||||
import './app.scss'
|
||||
|
||||
const App = () => {
|
||||
const [themes, setTheme] = useState(lightTheme);
|
||||
const [themes, setTheme] = useState(lightTheme)
|
||||
|
||||
return (
|
||||
<div className="app">
|
||||
<Context.Provider value={{setTheme}}>
|
||||
<ConfigProvider theme={themes}>
|
||||
<Routers/>
|
||||
</ConfigProvider>
|
||||
</Context.Provider>
|
||||
</div>
|
||||
)
|
||||
return (
|
||||
<div className="app">
|
||||
<Context.Provider value={{ setTheme }}>
|
||||
<ConfigProvider theme={themes}>
|
||||
<Routers />
|
||||
</ConfigProvider>
|
||||
</Context.Provider>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
Reference in new issue
Block a user