|
17 | 17 | import { useState } from 'react' |
18 | 18 | import { useHistory, useLocation, useParams } from 'react-router-dom' |
19 | 19 | import Button from '@Shared/Components/Button/Button.component' |
20 | | -import { Modal, SERVER_MODE, URLS } from '../../../../Common' |
| 20 | +import { ReactComponent as DropDown } from '@Icons/ic-caret-down-small.svg' |
| 21 | +import { ReactComponent as ChartIcon } from '@Icons/ic-charts.svg' |
| 22 | +import { ReactComponent as AddIcon } from '@Icons/ic-add.svg' |
| 23 | +import { ReactComponent as JobIcon } from '@Icons/ic-k8s-job.svg' |
21 | 24 | import PageHeader from '../PageHeader' |
22 | | -import { ReactComponent as DropDown } from '../../../../Assets/Icon/ic-dropdown-filled.svg' |
23 | | -import { ReactComponent as ChartIcon } from '../../../../Assets/Icon/ic-charts.svg' |
24 | | -import { ReactComponent as AddIcon } from '../../../../Assets/Icon/ic-add.svg' |
25 | | -import { ReactComponent as JobIcon } from '../../../../Assets/Icon/ic-k8s-job.svg' |
| 25 | +import { Modal, SERVER_MODE, URLS } from '../../../../Common' |
26 | 26 | import { AppListConstants, ComponentSizeType } from '../../../constants' |
27 | 27 | import './HeaderWithCreateButton.scss' |
28 | 28 | import { useMainContext } from '../../../Providers' |
@@ -62,19 +62,23 @@ export const HeaderWithCreateButton = ({ headerName }: HeaderWithCreateButtonPro |
62 | 62 | onClick={handleCreateButton} |
63 | 63 | dataTestId="create-app-button-on-header" |
64 | 64 | endIcon={<DropDown className="icon-dim-20" />} |
65 | | - size={ComponentSizeType.medium} |
| 65 | + size={ComponentSizeType.small} |
66 | 66 | /> |
67 | 67 | ) : ( |
68 | 68 | <Button |
69 | 69 | text="Deploy helm charts" |
70 | 70 | onClick={redirectToHelmAppDiscover} |
71 | 71 | dataTestId="deploy-helm-chart-on-header" |
72 | | - size={ComponentSizeType.medium} |
| 72 | + size={ComponentSizeType.small} |
73 | 73 | /> |
74 | 74 | ) |
75 | 75 |
|
76 | 76 | const renderCreateSelectionModal = () => ( |
77 | | - <Modal rootClassName="create-modal-wrapper" onClick={handleCreateButton}> |
| 77 | + <Modal |
| 78 | + rootClassName={`create-modal-wrapper |
| 79 | + ${window._env_.FEATURE_HEADER_TRY_DEVTRON_BUTTON_TEXT ? 'create-modal-wrapper--try-devtron' : ''}`} |
| 80 | + onClick={handleCreateButton} |
| 81 | + > |
78 | 82 | <div |
79 | 83 | className="create-modal-child cursor" |
80 | 84 | onClick={openCreateDevtronAppModel} |
|
0 commit comments