Generalize breakdown label
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user