We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27dea2e commit 7fa2061Copy full SHA for 7fa2061
1 file changed
src/components/common/Form/CopyButton.tsx
@@ -1,5 +1,5 @@
1
import { CopyOutlined } from '@ant-design/icons';
2
-import { Button } from 'antd';
+import { Button, Tooltip } from 'antd';
3
import type { ButtonProps } from 'antd/es/button/button';
4
import React, { FC } from 'react';
5
import { useCopy } from '@/hooks/useCopy';
@@ -12,5 +12,9 @@ type Props = {
12
export const CopyButton: FC<Props> = ({ copyText, size }) => {
13
const { copy } = useCopy();
14
15
- return <Button icon={<CopyOutlined />} size={size} onClick={copy(copyText)} />;
+ return (
16
+ <Tooltip title="コピー">
17
+ <Button icon={<CopyOutlined />} size={size} onClick={copy(copyText)} />
18
+ </Tooltip>
19
+ );
20
};
0 commit comments