mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat: rewrite message component
This commit is contained in:
@@ -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