aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2024-07-22 11:37:38 +0200
committersonartech <sonartech@sonarsource.com>2024-07-24 20:02:49 +0000
commit04de2de3d71fceab34404f5bb047671658dd1bb9 (patch)
tree0e2cb02442a587e32cb58811c52fdaebea6cee96 /server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx
parentb0789ab729b158223d633fd3ebfb34bf7c5ab516 (diff)
downloadsonarqube-04de2de3d71fceab34404f5bb047671658dd1bb9.tar.gz
sonarqube-04de2de3d71fceab34404f5bb047671658dd1bb9.zip
SONAR-22523 Replace old Buttons with Echoes Buttons
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx
index 9243f006f31..ca0531b8a1f 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx
@@ -17,7 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { ButtonSecondary, LightLabel, SonarCodeColorizer, Spinner } from 'design-system';
+import { Button } from '@sonarsource/echoes-react';
+import { LightLabel, SonarCodeColorizer, Spinner } from 'design-system';
import * as React from 'react';
import { MetricKey } from '~sonar-aligned/types/metrics';
import { decorateWithUnderlineFlags } from '../../helpers/code-viewer';
@@ -292,9 +293,9 @@ export default class SourceViewerCode extends React.PureComponent<Props, State>
</LightLabel>
</div>
) : (
- <ButtonSecondary onClick={this.props.loadSourcesBefore}>
+ <Button onClick={this.props.loadSourcesBefore}>
{translate('source_viewer.load_more_code')}
- </ButtonSecondary>
+ </Button>
)}
</div>
)}
@@ -331,9 +332,9 @@ export default class SourceViewerCode extends React.PureComponent<Props, State>
</LightLabel>
</div>
) : (
- <ButtonSecondary onClick={this.props.loadSourcesAfter}>
+ <Button onClick={this.props.loadSourcesAfter}>
{translate('source_viewer.load_more_code')}
- </ButtonSecondary>
+ </Button>
)}
</div>
)}