Skip to content

Commit 6b2b5b1

Browse files
committed
feat: update EnterpriseTrialDialog to use anchor button for external link
1 parent 5f94082 commit 6b2b5b1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Pages/GlobalConfigurations/ClustersAndEnvironments/CreateCluster/EnterpriseTrialDialog.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
22
Button,
3+
ButtonComponentType,
34
ComponentSizeType,
4-
DOCUMENTATION,
5-
getHandleOpenURL,
65
Icon,
6+
LICENSE_DASHBOARD_HOME_PAGE,
77
TESTIMONIAL_CARD_DATA,
88
TestimonialContent,
99
} from '@devtron-labs/devtron-fe-common-lib'
@@ -31,8 +31,11 @@ const EnterpriseTrialDialog = ({ featureTitle, featureDescription }: EnterpriseT
3131
dataTestId="get-free-trial"
3232
text="Get free trial"
3333
endIcon={<Icon name="ic-arrow-right" color={null} />}
34-
onClick={getHandleOpenURL(DOCUMENTATION.ENTERPRISE_LICENSE)}
34+
component={ButtonComponentType.anchor}
3535
size={ComponentSizeType.medium}
36+
anchorProps={{
37+
href: LICENSE_DASHBOARD_HOME_PAGE,
38+
}}
3639
/>
3740
</div>
3841
<div className="p-24 flexbox dc__gap-12 br-8 border__primary bg__primary">

0 commit comments

Comments
 (0)