feat: rewrite message component

This commit is contained in:
qishaoxuan
2022-07-28 23:42:05 +08:00
parent d5f6ab0bb5
commit 0cce817813
10 changed files with 224 additions and 88 deletions

View File

@@ -6,9 +6,7 @@ import { copy } from './copy';
const IconBooth: FC<{ name: string; Icon: FC<any> }> = ({ name, Icon }) => {
const on_click = () => {
copy(`<${name} />`);
message.success({
content: 'Copied.',
});
message.success('Copied ~');
};
return (
<IconContainer title={name} onClick={on_click}>