@@ -2,9 +2,7 @@ import {useLayoutEffect, useState} from 'react';
22import { useTheme } from '@emotion/react' ;
33import styled from '@emotion/styled' ;
44
5- import Feature from 'sentry/components/acl/feature' ;
65import ErrorBoundary from 'sentry/components/errorBoundary' ;
7- import { GroupSummary } from 'sentry/components/group/groupSummary' ;
86import { t } from 'sentry/locale' ;
97import { space } from 'sentry/styles/space' ;
108import type { Event } from 'sentry/types/event' ;
@@ -21,8 +19,7 @@ import {
2119 useEventDetailsReducer ,
2220} from 'sentry/views/issueDetails/streamline/context' ;
2321import { EventList } from 'sentry/views/issueDetails/streamline/eventList' ;
24- import { EventNavigation } from 'sentry/views/issueDetails/streamline/eventNavigation' ;
25- import { useEventQuery } from 'sentry/views/issueDetails/streamline/eventSearch' ;
22+ import { EventTitle } from 'sentry/views/issueDetails/streamline/eventTitle' ;
2623import { Tab } from 'sentry/views/issueDetails/types' ;
2724import { useGroupDetailsRoute } from 'sentry/views/issueDetails/useGroupDetailsRoute' ;
2825
@@ -32,17 +29,11 @@ export function EventDetails({
3229 project,
3330} : Required < EventDetailsContentProps > ) {
3431 const { eventDetails, dispatch} = useEventDetailsReducer ( ) ;
35- const searchQuery = useEventQuery ( { group} ) ;
3632
3733 const { currentTab} = useGroupDetailsRoute ( ) ;
3834
3935 return (
4036 < EventDetailsContext . Provider value = { { ...eventDetails , dispatch} } >
41- < PageErrorBoundary mini message = { t ( 'There was an error loading the issue summary' ) } >
42- < Feature features = { [ 'organizations:ai-summary' ] } >
43- < GroupSummary groupId = { group . id } groupCategory = { group . issueCategory } />
44- </ Feature >
45- </ PageErrorBoundary >
4637 { /* TODO(issues): We should use the router for this */ }
4738 { currentTab === Tab . EVENTS && (
4839 < PageErrorBoundary mini message = { t ( 'There was an error loading the event list' ) } >
@@ -57,27 +48,21 @@ export function EventDetails({
5748 mini
5849 message = { t ( 'There was an error loading the event content' ) }
5950 >
60- < GroupContent >
61- < StickyEventNav event = { event } group = { group } searchQuery = { searchQuery } />
62- < ContentPadding >
63- < EventDetailsContent group = { group } event = { event } project = { project } />
64- </ ContentPadding >
65- </ GroupContent >
51+ < div >
52+ < GroupContent >
53+ < StickyEventNav event = { event } group = { group } />
54+ < ContentPadding >
55+ < EventDetailsContent group = { group } event = { event } project = { project } />
56+ </ ContentPadding >
57+ </ GroupContent >
58+ </ div >
6659 </ PageErrorBoundary >
6760 ) }
6861 </ EventDetailsContext . Provider >
6962 ) ;
7063}
7164
72- function StickyEventNav ( {
73- event,
74- group,
75- searchQuery,
76- } : {
77- event : Event ;
78- group : Group ;
79- searchQuery : string ;
80- } ) {
65+ function StickyEventNav ( { event, group} : { event : Event ; group : Group } ) {
8166 const theme = useTheme ( ) ;
8267 const [ nav , setNav ] = useState < HTMLDivElement | null > ( null ) ;
8368 const isStuck = useIsStuck ( nav ) ;
@@ -102,13 +87,12 @@ function StickyEventNav({
10287 event = { event }
10388 group = { group }
10489 ref = { setNav }
105- query = { searchQuery }
10690 data-stuck = { isStuck }
10791 />
10892 ) ;
10993}
11094
111- const FloatingEventNavigation = styled ( EventNavigation ) `
95+ const FloatingEventNavigation = styled ( EventTitle ) `
11296 position: sticky;
11397 top: 0;
11498 @media (max-width: ${ p => p . theme . breakpoints . medium } ) {
0 commit comments