diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2020-04-20 09:53:42 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-04-22 20:03:36 +0000 |
commit | 50f7731bdfb593db17d3ef7654145912986f42bd (patch) | |
tree | 5e5859bc5569990e08756e913f9d9e57fad46a16 /server/sonar-web/src/main/js/apps/projectBaseline | |
parent | 8ff8e41b1a85cec1bc5955b4d21a670fcdcdb590 (diff) | |
download | sonarqube-50f7731bdfb593db17d3ef7654145912986f42bd.tar.gz sonarqube-50f7731bdfb593db17d3ef7654145912986f42bd.zip |
SONAR-13102 Use radio component consistently across the application
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectBaseline')
2 files changed, 21 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/BranchAnalysisList.tsx b/server/sonar-web/src/main/js/apps/projectBaseline/components/BranchAnalysisList.tsx index f90565f4dbd..3d5388bdafb 100644 --- a/server/sonar-web/src/main/js/apps/projectBaseline/components/BranchAnalysisList.tsx +++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/BranchAnalysisList.tsx @@ -21,6 +21,7 @@ import * as classNames from 'classnames'; import { subDays } from 'date-fns'; import { throttle } from 'lodash'; import * as React from 'react'; +import Radio from 'sonar-ui-common/components/controls/Radio'; import Select from 'sonar-ui-common/components/controls/Select'; import Tooltip from 'sonar-ui-common/components/controls/Tooltip'; import DateFormatter from 'sonar-ui-common/components/intl/DateFormatter'; @@ -251,10 +252,10 @@ export default class BranchAnalysisList extends React.PureComponent<Props, State )} <div className="analysis-selection-button"> - <i - className={classNames('icon-radio', { - 'is-checked': analysis.key === this.props.analysis - })} + <Radio + checked={analysis.key === this.props.analysis} + onCheck={() => {}} + value="" /> </div> </li> diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisList-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisList-test.tsx.snap index 46a6219e94d..6bdc18ba481 100644 --- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisList-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisList-test.tsx.snap @@ -76,8 +76,10 @@ exports[`should render correctly 1`] = ` <div className="analysis-selection-button" > - <i - className="icon-radio" + <Radio + checked={false} + onCheck={[Function]} + value="" /> </div> </li> @@ -130,8 +132,10 @@ exports[`should render correctly 1`] = ` <div className="analysis-selection-button" > - <i - className="icon-radio" + <Radio + checked={false} + onCheck={[Function]} + value="" /> </div> </li> @@ -231,8 +235,10 @@ exports[`should render correctly 1`] = ` <div className="analysis-selection-button" > - <i - className="icon-radio" + <Radio + checked={false} + onCheck={[Function]} + value="" /> </div> </li> @@ -255,8 +261,10 @@ exports[`should render correctly 1`] = ` <div className="analysis-selection-button" > - <i - className="icon-radio" + <Radio + checked={false} + onCheck={[Function]} + value="" /> </div> </li> |