As per Geoff's suggestion, we should extract the conditional grouping logic into its own component. We should pass in the GroupNameEnum to differentiate each type. The only issue is that the styles may require some tweaking to work properly.
The three files to extract from are:
/src/pages/Metrics/components/ChartPopover/ChartPopoverAdvanced.ts/src/pages/Metrics/components/StrokePopover/StrokePopoverAdvanced.ts/src/pages/Metrics/components/ColorPopover/ColorPopoverAdvanced.ts
As per Geoff's suggestion, we should extract the conditional grouping logic into its own component. We should pass in the
GroupNameEnum
to differentiate each type. The only issue is that the styles may require some tweaking to work properly.The three files to extract from are:
/src/pages/Metrics/components/ChartPopover/ChartPopoverAdvanced.ts
/src/pages/Metrics/components/StrokePopover/StrokePopoverAdvanced.ts
/src/pages/Metrics/components/ColorPopover/ColorPopoverAdvanced.ts