feat: rewrite message component
This commit is contained in:
1 parent
d5f6ab0bb5
commit
0cce817813
10 files changed
+224
-88
No files matched your search
@@ -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}>
|
||||
|
||||
Reference in new issue
Block a user