mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
refactor: Move Badge to Antdesign (#11899)
* Move Badge to Antdesign * Export enhanced badge only * Center number in badge
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Badge } from 'react-bootstrap';
|
||||
import Badge from 'src/common/components/Badge';
|
||||
import { t, styled } from '@superset-ui/core';
|
||||
import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls';
|
||||
|
||||
@@ -127,7 +127,7 @@ export default class TemplateParamsEditor extends React.Component {
|
||||
triggerNode={
|
||||
<Button tooltip={t('Edit template parameters')} buttonSize="small">
|
||||
{`${t('parameters')} `}
|
||||
{paramCount > 0 && <Badge>{paramCount}</Badge>}
|
||||
<Badge count={paramCount} />
|
||||
{!this.state.isValid && (
|
||||
<InfoTooltipWithTrigger
|
||||
icon="exclamation-triangle"
|
||||
|
||||
Reference in New Issue
Block a user