@@ -3,8 +3,8 @@ import {isValidElement, memo} from 'react';
3
3
import styled from '@emotion/styled' ;
4
4
import beautify from 'js-beautify' ;
5
5
6
+ import ProjectAvatar from 'sentry/components/avatar/projectAvatar' ;
6
7
import { CodeSnippet } from 'sentry/components/codeSnippet' ;
7
- import ProjectBadge from 'sentry/components/idBadge/projectBadge' ;
8
8
import Link from 'sentry/components/links/link' ;
9
9
import ObjectInspector from 'sentry/components/objectInspector' ;
10
10
import PanelItem from 'sentry/components/panels/panelItem' ;
@@ -154,22 +154,20 @@ function CrumbErrorIssue({frame}: {frame: FeedbackFrame | ErrorFrame}) {
154
154
const project = useProjectFromSlug ( { organization, projectSlug : frame . data . projectSlug } ) ;
155
155
const { groupId} = useReplayGroupContext ( ) ;
156
156
157
- const projectBadge = project ? (
158
- < ProjectBadge project = { project } avatarSize = { 16 } disableLink displayName = { false } />
159
- ) : null ;
157
+ const projectAvatar = project ? < ProjectAvatar project = { project } size = { 16 } /> : null ;
160
158
161
159
if ( String ( frame . data . groupId ) === groupId ) {
162
160
return (
163
161
< CrumbIssueWrapper >
164
- { projectBadge }
162
+ { projectAvatar }
165
163
{ frame . data . groupShortId }
166
164
</ CrumbIssueWrapper >
167
165
) ;
168
166
}
169
167
170
168
return (
171
169
< CrumbIssueWrapper >
172
- { projectBadge }
170
+ { projectAvatar }
173
171
< Link
174
172
to = {
175
173
isFeedbackFrame ( frame )
@@ -189,6 +187,7 @@ function CrumbErrorIssue({frame}: {frame: FeedbackFrame | ErrorFrame}) {
189
187
const CrumbIssueWrapper = styled ( 'div' ) `
190
188
display: flex;
191
189
align-items: center;
190
+ gap: ${ space ( 0.5 ) } ;
192
191
font-size: ${ p => p . theme . fontSizeSmall } ;
193
192
color: ${ p => p . theme . subText } ;
194
193
` ;
0 commit comments