mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
* adding streamlined metric editing * addressing lint issues on new metrics control * enabling druid
23 lines
578 B
JavaScript
23 lines
578 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import ColumnTypeLabel from '../../components/ColumnTypeLabel';
|
|
import aggregateOptionType from '../propTypes/aggregateOptionType';
|
|
|
|
const propTypes = {
|
|
aggregate: aggregateOptionType,
|
|
showType: PropTypes.bool,
|
|
};
|
|
|
|
export default function AggregateOption({ aggregate, showType }) {
|
|
return (
|
|
<div>
|
|
{showType && <ColumnTypeLabel type="aggregate" />}
|
|
<span className="m-r-5 option-label">
|
|
{aggregate.aggregate_name}
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|
|
AggregateOption.propTypes = propTypes;
|