Skip to content

Commit

Permalink
馃毃 fix: upgrade antd to fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed May 19, 2024
1 parent aae108e commit a0b37e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"@vercel/speed-insights": "^1.0.10",
"ahooks": "^3.7.11",
"ai": "3.0.19",
"antd": "^5.17.2",
"antd": "^5.17.3",
"antd-style": "^3.6.2",
"brotli-wasm": "^3.0.0",
"chroma-js": "^2.4.2",
Expand Down
2 changes: 1 addition & 1 deletion src/features/ChatInput/ActionBar/Tools/Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Avatar, Icon } from '@lobehub/ui';
import { Dropdown } from 'antd';
import { createStyles } from 'antd-style';
import type { ItemType } from 'antd/es/menu/hooks/useItems';
import type { ItemType } from 'antd/es/menu/interface';
import isEqual from 'fast-deep-equal';
import { ArrowRight, Store, ToyBrick } from 'lucide-react';
import { PropsWithChildren, memo } from 'react';
Expand Down
3 changes: 2 additions & 1 deletion src/features/ModelSwitchPanel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Icon } from '@lobehub/ui';
import { Dropdown } from 'antd';
import { createStyles } from 'antd-style';
import type { ItemType } from 'antd/es/menu/interface';
import isEqual from 'fast-deep-equal';
import { LucideArrowRight } from 'lucide-react';
import { useRouter } from 'next/navigation';
Expand Down Expand Up @@ -48,7 +49,7 @@ const ModelSwitchPanel = memo<PropsWithChildren>(({ children }) => {
const router = useRouter();
const enabledList = useUserStore(modelProviderSelectors.modelProviderListForModelSelect, isEqual);

const items = useMemo(() => {
const items = useMemo<ItemType[]>(() => {
const getModelItems = (provider: ModelProviderCard) => {
const items = provider.chatModels.map((model) => ({
key: model.id,
Expand Down

0 comments on commit a0b37e4

Please sign in to comment.