Skip to content

Commit 35b493d

Browse files
Refactor: Use custom SVG icons for copy and link functionality
Co-authored-by: yourton.ma <yourton.ma@gmail.com>
1 parent 3113ddc commit 35b493d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* See the License for the specific language governing permissions and
1111
* limitations under the License.
1212
*/
13-
import Icon, { CopyOutlined, DownOutlined, LinkOutlined } from '@ant-design/icons';
13+
import Icon, { DownOutlined } from '@ant-design/icons';
1414
import { Button, Dropdown, Space, Tooltip, Typography } from 'antd';
1515
import ButtonGroup from 'antd/lib/button/button-group';
1616
import { ItemType } from 'antd/lib/menu/hooks/useItems';
@@ -30,6 +30,8 @@ import { ReactComponent as ImportIcon } from '../../../assets/svg/ic-import.svg'
3030
import { ReactComponent as VersionIcon } from '../../../assets/svg/ic-version.svg';
3131
import { ReactComponent as IconDropdown } from '../../../assets/svg/menu.svg';
3232
import { ReactComponent as StyleIcon } from '../../../assets/svg/style.svg';
33+
import { ReactComponent as LinkIcon } from '../../../assets/svg/link.svg';
34+
import { ReactComponent as CopyIcon } from '../../../assets/svg/icon-copy.svg';
3335
import { ManageButtonItemLabel } from '../../../components/common/ManageButtonContentItem/ManageButtonContentItem.component';
3436
import { useEntityExportModalProvider } from '../../../components/Entity/EntityExportModalProvider/EntityExportModalProvider.component';
3537
import { EntityHeader } from '../../../components/Entity/EntityHeader/EntityHeader.component';
@@ -330,7 +332,7 @@ const GlossaryHeader = ({
330332
label: (
331333
<ManageButtonItemLabel
332334
description={t('message.copy-fqn-link-description')}
333-
icon={LinkOutlined}
335+
icon={LinkIcon}
334336
id="copy-fqn-link-button"
335337
name={t('label.copy-fqn-link')}
336338
/>
@@ -346,7 +348,7 @@ const GlossaryHeader = ({
346348
label: (
347349
<ManageButtonItemLabel
348350
description={t('message.copy-permanent-link-description')}
349-
icon={CopyOutlined}
351+
icon={CopyIcon}
350352
id="copy-permanent-link-button"
351353
name={t('label.copy-permanent-link')}
352354
/>
@@ -364,7 +366,7 @@ const GlossaryHeader = ({
364366
{
365367
label: t('label.copy-link'),
366368
key: 'copy-link-menu',
367-
icon: <Icon component={LinkOutlined} />,
369+
icon: <Icon component={LinkIcon} />,
368370
children: copyLinkMenuItems,
369371
},
370372
...(isGlossary && importExportPermissions

0 commit comments

Comments
 (0)