Skip to content

Commit 7bc7b72

Browse files
committed
feat: DevtronLicenseCard - update contact support button to use anchor component
1 parent 5b37674 commit 7bc7b72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Shared/Components/License/DevtronLicenseCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import { ReactComponent as ICChatSupport } from '@IconsV2/ic-chat-circle-dots.sv
55
import { ReactComponent as TexturedBG } from '@Images/licenseCardBG.svg'
66
import { ClipboardButton, getTTLInHumanReadableFormat } from '@Common/index'
77
import { CONTACT_SUPPORT_LINK, ENTERPRISE_SUPPORT_LINK } from '@Shared/constants'
8-
import { getHandleOpenURL } from '@Shared/Helpers'
98
import { AppThemeType } from '@Shared/Providers'
109
import { getThemeOppositeThemeClass } from '@Shared/Providers/ThemeProvider/utils'
1110

12-
import { Button, ButtonVariantType } from '../Button'
11+
import { Button, ButtonComponentType, ButtonVariantType } from '../Button'
1312
import { Icon } from '../Icon'
1413
import { DevtronLicenseCardProps, LicenseStatus } from './types'
1514
import { getLicenseColorsAccordingToStatus } from './utils'
@@ -147,7 +146,8 @@ export const DevtronLicenseCard = ({
147146
startIcon={<ICChatSupport />}
148147
text="Contact support"
149148
variant={ButtonVariantType.text}
150-
onClick={getHandleOpenURL(CONTACT_SUPPORT_LINK)}
149+
component={ButtonComponentType.anchor}
150+
anchorProps={{ href: CONTACT_SUPPORT_LINK }}
151151
/>
152152
</div>
153153
)}

0 commit comments

Comments
 (0)