Skip to content

Commit cc854a4

Browse files
committed
feat: use icon from icon component
1 parent b849663 commit cc854a4

File tree

4 files changed

+13
-330
lines changed

4 files changed

+13
-330
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "1.19.0-beta-5",
7+
"@devtron-labs/devtron-fe-common-lib": "1.19.1",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/Pages/Shared/UpgradeToEnterprise/UpgradeToEnterpriseDialog.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {
22
Button,
3+
ButtonComponentType,
34
ButtonStyleType,
45
ButtonVariantType,
6+
CONTACT_SUPPORT_LINK,
57
GenericModal,
68
Icon,
79
noop,
810
} from '@devtron-labs/devtron-fe-common-lib'
911

10-
import { ReactComponent as ICUpgradeToEnterprise } from './ic-upgrade-enterprise.svg'
11-
1212
const ENTERPRISE_PLAN_OFFERINGS = [
1313
'Unlimited clusters',
1414
'Managed Devtron installation',
@@ -29,7 +29,7 @@ const UpgradeToEnterpriseDialog = ({ open, handleClose }: { open: boolean; handl
2929
>
3030
<div className="flexbox-col dc__gap-16">
3131
<div className="flexbox dc__content-space dc__align-start">
32-
<ICUpgradeToEnterprise className="icon-dim-64" />
32+
<Icon name="ic-upgrade-enterprise" size={64} color={null} />
3333
<Button
3434
dataTestId="close-upgrade-dialog"
3535
icon={<Icon name="ic-close-large" color={null} />}
@@ -68,11 +68,14 @@ const UpgradeToEnterpriseDialog = ({ open, handleClose }: { open: boolean; handl
6868
grow.
6969
</span>
7070
</div>
71-
{/* TODO: Add onClick handler */}
7271
<Button
7372
dataTestId="upgrade-to-enterprise"
7473
text="Upgrade Now"
7574
endIcon={<Icon name="ic-arrow-right" color={null} />}
75+
component={ButtonComponentType.anchor}
76+
anchorProps={{
77+
href: CONTACT_SUPPORT_LINK,
78+
}}
7679
/>
7780
</div>
7881
</div>

src/Pages/Shared/UpgradeToEnterprise/ic-upgrade-enterprise.svg

Lines changed: 0 additions & 320 deletions
This file was deleted.

0 commit comments

Comments
 (0)