1
- import { Button , Typography } from 'antd' ;
1
+ import { Typography } from 'antd' ;
2
2
import React , { useState } from 'react' ;
3
+ import { Button } from '@src/alchemy-components' ;
3
4
import styled from 'styled-components/macro' ;
4
5
import { TermRelationshipType } from '../../../../types.generated' ;
5
6
import { Message } from '../../../shared/Message' ;
@@ -8,7 +9,6 @@ import AddRelatedTermsModal from './AddRelatedTermsModal';
8
9
import RelatedTerm from './RelatedTerm' ;
9
10
import { CustomIcon } from '../../../sharedV2/icons/customIcons/CustomIcon' ;
10
11
import addTerm from '../../../sharedV2/icons/customIcons/add-term.svg' ;
11
- import { REDESIGN_COLORS } from '../../shared/constants' ;
12
12
13
13
export enum RelatedTermTypes {
14
14
hasRelatedTerms = 'Contains' ,
@@ -45,20 +45,6 @@ const TitleContainer = styled.div`
45
45
46
46
const messageStyle = { marginTop : '10%' } ;
47
47
48
- const ButtonStyle = styled ( Button ) `
49
- border: 1px solid ${ REDESIGN_COLORS . TITLE_PURPLE } ;
50
- color: ${ REDESIGN_COLORS . TITLE_PURPLE } ;
51
- border-radius: 8px;
52
- display: flex;
53
- gap: 0.2rem;
54
-
55
- &:hover,
56
- &:focus {
57
- border: 1px solid ${ REDESIGN_COLORS . TITLE_PURPLE } ;
58
- color: ${ REDESIGN_COLORS . TITLE_PURPLE } ;
59
- }
60
- ` ;
61
-
62
48
export default function GlossaryRelatedTermsResult ( { glossaryRelatedTermType, glossaryRelatedTermResult } : Props ) {
63
49
const [ isShowingAddModal , setIsShowingAddModal ] = useState ( false ) ;
64
50
const glossaryRelatedTermUrns : Array < string > = [ ] ;
@@ -86,9 +72,9 @@ export default function GlossaryRelatedTermsResult({ glossaryRelatedTermType, gl
86
72
{ glossaryRelatedTermType }
87
73
</ Typography . Title >
88
74
{ canEditRelatedTerms && (
89
- < ButtonStyle type = "text" onClick = { ( ) => setIsShowingAddModal ( true ) } >
75
+ < Button variant = "text" onClick = { ( ) => setIsShowingAddModal ( true ) } >
90
76
< CustomIcon iconSvg = { addTerm } /> Add Terms
91
- </ ButtonStyle >
77
+ </ Button >
92
78
) }
93
79
</ TitleContainer >
94
80
< ListContainer >
0 commit comments