Skip to content

Commit

Permalink
pass dispatch down
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Oct 17, 2024
1 parent 3d37fd5 commit 1556783
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions static/app/views/issueDetails/streamline/eventDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ export function EventDetails({
message={t('There was an error loading the event content')}
>
<GroupContent>
<StickyEventNav event={event} group={group} searchQuery={searchQuery} />
<StickyEventNav
event={event}
group={group}
searchQuery={searchQuery}
dispatch={dispatch}
/>
<ContentPadding>
<EventDetailsContent group={group} event={event} project={project} />
</ContentPadding>
Expand All @@ -146,7 +151,9 @@ function StickyEventNav({
event,
group,
searchQuery,
dispatch,
}: {
dispatch: ReturnType<typeof useEventDetailsReducer>['dispatch'];
event: Event;
group: Group;
searchQuery: string;
Expand All @@ -155,7 +162,6 @@ function StickyEventNav({
const [nav, setNav] = useState<HTMLDivElement | null>(null);
const isStuck = useIsStuck(nav);
const isScreenMedium = useMedia(`(max-width: ${theme.breakpoints.medium})`);
const {dispatch} = useEventDetailsReducer();

useLayoutEffect(() => {
if (!nav) {
Expand Down

0 comments on commit 1556783

Please sign in to comment.