Skip to content

Commit

Permalink
fix: fix copy button (#5417)
Browse files Browse the repository at this point in the history
  • Loading branch information
keita-determined authored Nov 11, 2022
1 parent 75969d3 commit 5a3acc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webui/react/src/shared/components/CopyButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CopyOutlined } from '@ant-design/icons';
import { Tooltip } from 'antd';
import { Button, Tooltip } from 'antd';
import React, { useCallback, useState } from 'react';

type TextOptions = 'Copy to Clipboard' | 'Copied!';
Expand All @@ -23,7 +23,7 @@ const CopyButton: React.FC<Props> = ({ onCopy }: Props) => {

return (
<Tooltip title={text}>
<CopyOutlined onClick={handleCopy} />
<Button icon={<CopyOutlined />} type="ghost" onClick={handleCopy} />
</Tooltip>
);
};
Expand Down

0 comments on commit 5a3acc1

Please sign in to comment.