|
@@ -65,30 +65,28 @@ function FilterBar({
|
|
|
/>
|
|
|
)}
|
|
|
{onChangeDataset && (
|
|
|
- <SegmentedControlWrapper>
|
|
|
- <SegmentedControl<DatasetOption>
|
|
|
- aria-label={t('Alert type')}
|
|
|
- value={selectedDataset}
|
|
|
- onChange={onChangeDataset}
|
|
|
+ <StyledSegmentedControl
|
|
|
+ aria-label={t('Alert type')}
|
|
|
+ value={selectedDataset}
|
|
|
+ onChange={onChangeDataset}
|
|
|
+ >
|
|
|
+ <SegmentedControl.Item key={DatasetOption.ALL}>
|
|
|
+ {t('All')}
|
|
|
+ </SegmentedControl.Item>
|
|
|
+ <SegmentedControl.Item key={DatasetOption.ERRORS}>
|
|
|
+ {t('Errors')}
|
|
|
+ </SegmentedControl.Item>
|
|
|
+ <SegmentedControl.Item key={DatasetOption.SESSIONS}>
|
|
|
+ {t('Sessions')}
|
|
|
+ </SegmentedControl.Item>
|
|
|
+ <SegmentedControl.Item
|
|
|
+ textValue={t('Performance')}
|
|
|
+ key={DatasetOption.PERFORMANCE}
|
|
|
>
|
|
|
- <SegmentedControl.Item key={DatasetOption.ALL}>
|
|
|
- {t('All')}
|
|
|
- </SegmentedControl.Item>
|
|
|
- <SegmentedControl.Item key={DatasetOption.ERRORS}>
|
|
|
- {t('Errors')}
|
|
|
- </SegmentedControl.Item>
|
|
|
- <SegmentedControl.Item key={DatasetOption.SESSIONS}>
|
|
|
- {t('Sessions')}
|
|
|
- </SegmentedControl.Item>
|
|
|
- <SegmentedControl.Item
|
|
|
- textValue={t('Performance')}
|
|
|
- key={DatasetOption.PERFORMANCE}
|
|
|
- >
|
|
|
- {t('Performance')}
|
|
|
- {showMigrationWarning ? <StyledIconWarning /> : null}
|
|
|
- </SegmentedControl.Item>
|
|
|
- </SegmentedControl>
|
|
|
- </SegmentedControlWrapper>
|
|
|
+ {t('Performance')}
|
|
|
+ {showMigrationWarning ? <StyledIconWarning /> : null}
|
|
|
+ </SegmentedControl.Item>
|
|
|
+ </StyledSegmentedControl>
|
|
|
)}
|
|
|
</FilterButtons>
|
|
|
<SearchBar
|
|
@@ -125,9 +123,8 @@ const FilterButtons = styled(ButtonBar)`
|
|
|
}
|
|
|
`;
|
|
|
|
|
|
-const SegmentedControlWrapper = styled('div')`
|
|
|
+const StyledSegmentedControl = styled(SegmentedControl<DatasetOption>)`
|
|
|
width: max-content;
|
|
|
- min-width: 345px;
|
|
|
`;
|
|
|
|
|
|
const StyledIconWarning = styled(IconWarning)`
|