Files
superset2/superset/assets/src/explore/components/AggregateOption.jsx
Maxime Beauchemin c0db6dbb57 Moving some JS folders (#4820)
* Moving folders

* Pointing to new locations
2018-04-17 21:05:01 -07:00

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;