Skip to content

Commit

Permalink
site: use message hooks usage (#48862)
Browse files Browse the repository at this point in the history
* refactor(iconSearch): use message hooks usage

* fix: use useApp
  • Loading branch information
thinkasany committed May 10, 2024
1 parent 32b89e6 commit 1f39811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .dumi/theme/builtins/IconSearch/Category.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { useIntl } from 'dumi';
import { message } from 'antd';
import { App } from 'antd';
import CopyableIcon from './CopyableIcon';
import type { ThemeType } from './index';
import type { CategoriesKeys } from './fields';
Expand All @@ -13,6 +13,7 @@ interface CategoryProps {
}

const Category: React.FC<CategoryProps> = (props) => {
const { message } = App.useApp();
const { icons, title, newIcons, theme } = props;
const intl = useIntl();
const [justCopied, setJustCopied] = React.useState<string | null>(null);
Expand Down

0 comments on commit 1f39811

Please sign in to comment.