Skip to content

Commit 5a9488f

Browse files
committedMar 18, 2025·
🎨 simplify props
1 parent e28485f commit 5a9488f

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed
 

‎static/app/views/issueDetails/groupTags/groupTagsDrawer.tsx

+12-15
Original file line numberDiff line numberDiff line change
@@ -84,25 +84,23 @@ function getHeaderTitle(
8484
}
8585

8686
function DrawerContent({
87-
data,
88-
tagKey,
89-
tab,
87+
displayTags,
9088
group,
9189
environments,
9290
search,
93-
isPending,
94-
isHighlightsPending,
91+
isLoading,
9592
isError,
9693
refetch,
97-
displayTags,
94+
tab,
95+
tagKey,
96+
data,
9897
}: {
9998
data: GroupTag[];
10099
displayTags: GroupTag[];
101100
environments: string[];
102101
group: Group;
103102
isError: boolean;
104-
isHighlightsPending: boolean;
105-
isPending: boolean;
103+
isLoading: boolean;
106104
refetch: () => void;
107105
search: string;
108106
tab: DrawerTab;
@@ -126,7 +124,7 @@ function DrawerContent({
126124
);
127125
}
128126

129-
if (isPending || isHighlightsPending) {
127+
if (isLoading) {
130128
return <LoadingIndicator />;
131129
}
132130

@@ -368,17 +366,16 @@ export function GroupTagsDrawer({
368366
</EventNavigator>
369367
<EventDrawerBody>
370368
<DrawerContent
371-
data={data}
372-
tagKey={tagKey}
373-
tab={tab as DrawerTab}
369+
displayTags={displayTags}
374370
group={group}
375371
environments={environments}
376372
search={search}
377-
isPending={isPending}
378-
isHighlightsPending={isHighlightsPending}
373+
isLoading={isPending || isHighlightsPending}
379374
isError={isError}
380375
refetch={refetch}
381-
displayTags={displayTags}
376+
tab={tab as DrawerTab}
377+
tagKey={tagKey}
378+
data={data}
382379
/>
383380
</EventDrawerBody>
384381
</EventDrawerContainer>

0 commit comments

Comments
 (0)
Please sign in to comment.