|
@@ -1,11 +1,7 @@
|
|
|
-import styled from '@emotion/styled';
|
|
|
import {Location} from 'history';
|
|
|
import isEmpty from 'lodash/isEmpty';
|
|
|
|
|
|
-import EventDataSection from 'app/components/events/eventDataSection';
|
|
|
import Pills from 'app/components/pills';
|
|
|
-import {t} from 'app/locale';
|
|
|
-import space from 'app/styles/space';
|
|
|
import {Organization} from 'app/types';
|
|
|
import {Event} from 'app/types/event';
|
|
|
import {defined, generateQueryWithTag} from 'app/utils';
|
|
@@ -36,29 +32,21 @@ const EventTags = ({
|
|
|
const releasesPath = `/organizations/${orgSlug}/releases/`;
|
|
|
|
|
|
return (
|
|
|
- <StyledEventDataSection title={t('Tags')} type="tags">
|
|
|
- <Pills>
|
|
|
- {tags.map((tag, index) => (
|
|
|
- <EventTagsPill
|
|
|
- key={!defined(tag.key) ? `tag-pill-${index}` : tag.key}
|
|
|
- tag={tag}
|
|
|
- projectId={projectId}
|
|
|
- organization={organization}
|
|
|
- query={generateQueryWithTag(location.query, tag)}
|
|
|
- streamPath={streamPath}
|
|
|
- releasesPath={releasesPath}
|
|
|
- hasQueryFeature={hasQueryFeature}
|
|
|
- />
|
|
|
- ))}
|
|
|
- </Pills>
|
|
|
- </StyledEventDataSection>
|
|
|
+ <Pills>
|
|
|
+ {tags.map((tag, index) => (
|
|
|
+ <EventTagsPill
|
|
|
+ key={!defined(tag.key) ? `tag-pill-${index}` : tag.key}
|
|
|
+ tag={tag}
|
|
|
+ projectId={projectId}
|
|
|
+ organization={organization}
|
|
|
+ query={generateQueryWithTag(location.query, tag)}
|
|
|
+ streamPath={streamPath}
|
|
|
+ releasesPath={releasesPath}
|
|
|
+ hasQueryFeature={hasQueryFeature}
|
|
|
+ />
|
|
|
+ ))}
|
|
|
+ </Pills>
|
|
|
);
|
|
|
};
|
|
|
|
|
|
export default EventTags;
|
|
|
-
|
|
|
-const StyledEventDataSection = styled(EventDataSection)`
|
|
|
- @media (min-width: ${p => p.theme.breakpoints[1]}) {
|
|
|
- margin-bottom: ${space(3)};
|
|
|
- }
|
|
|
-`;
|