Generalize breakdown label

This commit is contained in:
Brenda Sukh
2020-12-02 15:07:50 -05:00
parent 108994d4dc
commit fc16895a93
3 changed files with 4 additions and 0 deletions
@@ -93,6 +93,7 @@ type ProductEntityDialogOptions = Partial<
type ProductEntityDialogProps = {
open: boolean;
entity?: Entity;
entitiesLabel: string;
options?: ProductEntityDialogOptions;
onClose: () => void;
};
@@ -100,6 +101,7 @@ type ProductEntityDialogProps = {
export const ProductEntityDialog = ({
open,
entity = defaultEntity,
entitiesLabel,
options = {},
onClose,
}: ProductEntityDialogProps) => {
@@ -200,6 +200,7 @@ export const ProductInsightsChart = ({
onClose={() => setSelected(undefined)}
entity={entity.entities.find(e => e.id === selectLabel)}
options={options}
entitiesLabel={entity.entitiesLabel || 'SKU'}
/>
)}
</Box>
@@ -22,6 +22,7 @@ export interface Entity {
aggregation: [number, number];
entities: Entity[];
change: ChangeStatistic;
entitiesLabel?: string;
}
/*