@@ -8,15 +8,15 @@ import {SentryAppAvatar} from 'sentry/components/core/avatar/sentryAppAvatar';
8
8
import { TeamAvatar } from 'sentry/components/core/avatar/teamAvatar' ;
9
9
import { UserAvatar } from 'sentry/components/core/avatar/userAvatar' ;
10
10
import { Button } from 'sentry/components/core/button' ;
11
+ import type { RadioOption } from 'sentry/components/forms/controls/radioGroup' ;
11
12
import RadioGroup from 'sentry/components/forms/controls/radioGroup' ;
12
13
import ExternalLink from 'sentry/components/links/externalLink' ;
13
14
import LoadingError from 'sentry/components/loadingError' ;
14
15
import LoadingIndicator from 'sentry/components/loadingIndicator' ;
15
16
import Panel from 'sentry/components/panels/panel' ;
16
17
import PanelBody from 'sentry/components/panels/panelBody' ;
17
18
import PanelHeader from 'sentry/components/panels/panelHeader' ;
18
- import Well from 'sentry/components/well' ;
19
- import { t } from 'sentry/locale' ;
19
+ import { t , tct } from 'sentry/locale' ;
20
20
import { space } from 'sentry/styles/space' ;
21
21
import type { SentryApp , SentryAppAvatarPhotoType } from 'sentry/types/integrations' ;
22
22
import type { Organization , Team } from 'sentry/types/organization' ;
@@ -149,7 +149,7 @@ function AvatarChooser(props: AvatarChooserProps) {
149
149
const isOrganization = type === 'organization' ;
150
150
const isSentryApp = type ?. startsWith ( 'sentryApp' ) ;
151
151
152
- const choices : Array < [ AvatarType , string ] > = [ ] ;
152
+ const choices : Array < RadioOption < AvatarType > > = [ ] ;
153
153
154
154
if ( allowDefault && preview ) {
155
155
choices . push ( [ 'default' , defaultChoiceText ?? t ( 'Use default avatar' ) ] ) ;
@@ -161,7 +161,13 @@ function AvatarChooser(props: AvatarChooserProps) {
161
161
choices . push ( [ 'upload' , t ( 'Upload an image' ) ] ) ;
162
162
}
163
163
if ( allowGravatar ) {
164
- choices . push ( [ 'gravatar' , t ( 'Use Gravatar' ) ] ) ;
164
+ choices . push ( [
165
+ 'gravatar' ,
166
+ t ( 'Use Gravatar' ) ,
167
+ tct ( 'Manage your Gravatar on [gravatarLink:gravatar.com].' , {
168
+ gravatarLink : < ExternalLink href = "https://gravatar.com" /> ,
169
+ } ) ,
170
+ ] ) ;
165
171
}
166
172
167
173
const sharedAvatarProps = {
@@ -205,12 +211,6 @@ function AvatarChooser(props: AvatarChooserProps) {
205
211
{ isDefault && preview }
206
212
</ AvatarGroup >
207
213
< AvatarUploadSection >
208
- { allowGravatar && avatarType === 'gravatar' && (
209
- < Well >
210
- { t ( 'Gravatars are managed through ' ) }
211
- < ExternalLink href = "http://gravatar.com" > Gravatar.com</ ExternalLink >
212
- </ Well >
213
- ) }
214
214
{ model . avatar && avatarType === 'upload' && (
215
215
< AvatarUploader
216
216
{ ...props }
0 commit comments