File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
src/components/v2/appDetails/sourceInfo Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { ReactComponent as RightArrow } from '@Icons/ic-arrow-right.svg'
17
+ import {
18
+ Button ,
19
+ ButtonStyleType ,
20
+ ButtonVariantType ,
21
+ ComponentSizeType ,
22
+ Icon ,
23
+ } from '@devtron-labs/devtron-fe-common-lib'
18
24
19
25
export const getEnvironmentName = (
20
26
clusterName : string ,
@@ -45,15 +51,14 @@ export const getUsedChartContent = (isDeprecated: boolean, onClickUpgrade: () =>
45
51
</ div >
46
52
) }
47
53
</ div >
48
- { /* Due to missing support of white text, unable to use Button component */ }
49
- < button
50
- type = "button"
51
- data-testid = "chart-used-upgrade-button"
52
- className = "flexbox dc__gap-6 dc__transparent cn-0 fs-12 fw-6 lh-20 p-0 dc__align-items-center"
54
+ < Button
55
+ dataTestId = "chart-used-upgrade- button"
56
+ variant = { ButtonVariantType . text }
57
+ style = { ButtonStyleType . neutralWhite }
58
+ size = { ComponentSizeType . small }
53
59
onClick = { onClickUpgrade }
54
- >
55
- Go to Configure
56
- < RightArrow className = "dc__no-shrink icon-dim-16 scn-0" />
57
- </ button >
60
+ endIcon = { < Icon name = "ic-arrow-right" color = { null } /> }
61
+ text = "Go to Configure"
62
+ />
58
63
</ div >
59
64
)
You can’t perform that action at this time.
0 commit comments