Skip to content

Commit

Permalink
refactor: 卸除 activation 包
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhana committed Jul 20, 2024
1 parent bf416f4 commit 1c591a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 89 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"normalize.css": "^8.0.1",
"qs": "^6.12.1",
"react": "^18.2.0",
"react-activation": "^0.12.4",
"react-content-loader": "^7.0.2",
"react-cropper": "^2.3.3",
"react-dom": "^18.2.0",
Expand Down
77 changes: 0 additions & 77 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 8 additions & 11 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ConfigProvider } from 'antd'
import { AliveScope } from 'react-activation'
import { createRoot } from 'react-dom/client'
import { ErrorBoundary } from 'react-error-boundary'
import 'react-photo-view/dist/react-photo-view.css'
Expand All @@ -17,16 +16,14 @@ import { persistor, store } from './store'
createRoot(document.getElementById('root')!).render(
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<AliveScope>
<ConfigProvider
theme={{
token: { colorPrimary: '#0090F0' },
}}>
<ErrorBoundary fallbackRender={ErrorPage}>
<RouterProvider fallbackElement={<p>初始化加载...</p>} router={router} />
</ErrorBoundary>
</ConfigProvider>
</AliveScope>
<ConfigProvider
theme={{
token: { colorPrimary: '#0090F0' },
}}>
<ErrorBoundary fallbackRender={ErrorPage}>
<RouterProvider fallbackElement={<p>初始化加载...</p>} router={router} />
</ErrorBoundary>
</ConfigProvider>
</PersistGate>
</Provider>,
)

0 comments on commit 1c591a9

Please sign in to comment.