Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: delete repetitive style import #394

Merged
merged 3 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dumi/theme/common/PeterCat.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Assistant } from '@petercatai/assistant';
import React from 'react';
import '@petercatai/assistant/style';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删除了重复的样式导入,这有助于减少不必要的依赖和可能的样式冲突。

const PeterCat: React.FC = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions .dumi/theme/layouts/GlobalLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import type { ThemeName } from '../common/ThemeSwitch';
import type { SiteContextProps } from '../slots/SiteContext';
import SiteContext from '../slots/SiteContext';

import '@petercatai/assistant/style';

const ThemeSwitch = React.lazy(() => import('../common/ThemeSwitch'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删除了重复的样式导入,这有助于减少不必要的依赖和可能的样式冲突。


type Entries<T> = { [K in keyof T]: [K, T[K]] }[keyof T][];
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
},
"devDependencies": {
"@ant-design/tools": "^18.0.2",
"@petercatai/assistant": "^2.0.2",
"@petercatai/assistant": "^2.0.5",
"@antv/gpt-vis": "^0.3.0",
"@biomejs/biome": "^1.9.0",
"@codecov/webpack-plugin": "^1.4.0",
Expand Down
Loading