Просмотр исходного кода

ref(ui): Change user feedback prop to orgSlug (#54600)

Scott Cooper 1 год назад
Родитель
Сommit
6dc9fd052d

+ 1 - 1
static/app/components/events/eventEntries.tsx

@@ -89,7 +89,7 @@ function EventEntries({
         <EventDataSection title="User Feedback" type="user-feedback">
           <EventUserFeedback
             report={event.userReport}
-            orgId={orgSlug}
+            orgSlug={orgSlug}
             issueId={group.id}
           />
         </EventDataSection>

+ 3 - 3
static/app/components/events/userFeedback.tsx

@@ -13,12 +13,12 @@ import useCopyToClipboard from 'sentry/utils/useCopyToClipboard';
 
 type Props = {
   issueId: string;
-  orgId: string;
+  orgSlug: string;
   report: UserReport;
   className?: string;
 };
 
-export function EventUserFeedback({className, report, orgId, issueId}: Props) {
+export function EventUserFeedback({className, report, orgSlug, issueId}: Props) {
   const user = report.user || {
     name: report.name,
     email: report.email,
@@ -52,7 +52,7 @@ export function EventUserFeedback({className, report, orgId, issueId}: Props) {
 
             {report.eventID && (
               <ViewEventLink
-                to={`/organizations/${orgId}/issues/${issueId}/events/${report.eventID}/?referrer=user-feedback`}
+                to={`/organizations/${orgSlug}/issues/${issueId}/events/${report.eventID}/?referrer=user-feedback`}
               >
                 {t('View event')}
               </ViewEventLink>

+ 1 - 1
static/app/views/issueDetails/groupEventDetails/groupEventDetailsContent.tsx

@@ -96,7 +96,7 @@ function GroupEventDetailsContent({
         <EventDataSection title="User Feedback" type="user-feedback">
           <EventUserFeedback
             report={event.userReport}
-            orgId={organization.slug}
+            orgSlug={organization.slug}
             issueId={group.id}
           />
         </EventDataSection>

+ 1 - 1
static/app/views/issueDetails/groupUserFeedback.tsx

@@ -102,7 +102,7 @@ class GroupUserFeedback extends Component<Props, State> {
               <StyledEventUserFeedback
                 key={idx}
                 report={item}
-                orgId={organization.slug}
+                orgSlug={organization.slug}
                 issueId={group.id}
               />
             ))}

+ 1 - 1
static/app/views/userFeedback/index.tsx

@@ -77,7 +77,7 @@ class OrganizationUserFeedback extends DeprecatedAsyncView<Props, State> {
             <CompactIssue key={item.id} id={issue.id} data={issue} eventId={item.eventID}>
               <StyledEventUserFeedback
                 report={item}
-                orgId={organization.slug}
+                orgSlug={organization.slug}
                 issueId={issue.id}
               />
             </CompactIssue>