sidebar.tsx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import styled from '@emotion/styled';
  2. import ErrorBoundary from 'sentry/components/errorBoundary';
  3. import {StreamlinedExternalIssueList} from 'sentry/components/group/externalIssuesList/streamlinedExternalIssueList';
  4. import {space} from 'sentry/styles/space';
  5. import type {Event} from 'sentry/types/event';
  6. import type {Group} from 'sentry/types/group';
  7. import type {Project} from 'sentry/types/project';
  8. import StreamlinedActivitySection from 'sentry/views/issueDetails/streamline/activitySection';
  9. type Props = {
  10. group: Group;
  11. project: Project;
  12. event?: Event;
  13. };
  14. export default function StreamlinedSidebar({group, event, project}: Props) {
  15. return (
  16. <div>
  17. {event && (
  18. <ErrorBoundary mini>
  19. <StreamlinedExternalIssueList group={group} event={event} project={project} />
  20. </ErrorBoundary>
  21. )}
  22. <StyledBreak />
  23. <StreamlinedActivitySection group={group} />
  24. </div>
  25. );
  26. }
  27. const StyledBreak = styled('hr')`
  28. margin-top: ${space(2)};
  29. margin-bottom: ${space(2)};
  30. border-color: ${p => p.theme.border};
  31. `;