@@ -2,6 +2,7 @@ import styled from '@emotion/styled';
2
2
import startCase from 'lodash/startCase' ;
3
3
4
4
import { Alert } from 'sentry/components/core/alert' ;
5
+ import { Tag } from 'sentry/components/core/badge/tag' ;
5
6
import { LinkButton } from 'sentry/components/core/button' ;
6
7
import Link from 'sentry/components/links/link' ;
7
8
import PanelItem from 'sentry/components/panels/panelItem' ;
@@ -109,11 +110,12 @@ function IntegrationRow(props: Props) {
109
110
</ TitleContainer >
110
111
< TagsContainer >
111
112
{ categories ?. map ( category => (
112
- < CategoryTag
113
+ < Tag
113
114
key = { category }
114
- category = { category === 'api' ? 'API' : startCase ( category ) }
115
- priority = { category === publishStatus }
116
- />
115
+ type = { category === publishStatus ? 'highlight' : 'default' }
116
+ >
117
+ { category === 'api' ? 'API' : startCase ( category ) }
118
+ </ Tag >
117
119
) ) }
118
120
</ TagsContainer >
119
121
</ FlexContainer >
@@ -176,8 +178,12 @@ const TitleContainer = styled('div')`
176
178
177
179
const TagsContainer = styled ( 'div' ) `
178
180
flex: 3;
179
- text-align: right;
180
181
padding: 0 ${ space ( 2 ) } ;
182
+ display: flex;
183
+ flex-direction: row;
184
+ flex-wrap: wrap;
185
+ gap: ${ space ( 1 ) } ;
186
+ justify-content: flex-end;
181
187
` ;
182
188
183
189
const IntegrationName = styled ( Link ) `
@@ -191,59 +197,35 @@ const IntegrationDetails = styled('div')`
191
197
` ;
192
198
193
199
const StyledLink = styled ( Link ) `
194
- color: ${ p => p . theme . gray300 } ;
200
+ color: ${ p => p . theme . subText } ;
195
201
&:before {
196
202
content: '|';
197
- color: ${ p => p . theme . gray200 } ;
203
+ color: ${ p => p . theme . subText } ;
198
204
margin-right: ${ space ( 0.75 ) } ;
199
205
}
200
206
` ;
201
207
202
208
const LearnMore = styled ( Link ) `
203
- color: ${ p => p . theme . gray300 } ;
209
+ color: ${ p => p . theme . subText } ;
204
210
` ;
205
211
206
- type PublishStatusProps = { status : SentryApp [ 'status' ] ; theme ?: any } ;
212
+ type PublishStatusProps = { status : SentryApp [ 'status' ] } ;
207
213
208
214
const PublishStatus = styled ( ( { status, ...props } : PublishStatusProps ) => (
209
215
< div { ...props } > { status } </ div >
210
216
) ) `
211
- color: ${ ( props : PublishStatusProps ) =>
212
- props . status === 'published' ? props . theme . success : props . theme . gray300 } ;
217
+ color: ${ p => ( p . status === 'published' ? p . theme . success : p . theme . gray300 ) } ;
213
218
font-weight: light;
214
219
margin-right: ${ space ( 0.75 ) } ;
215
220
text-transform: capitalize;
216
221
&:before {
217
222
content: '|';
218
- color: ${ p => p . theme . gray200 } ;
223
+ color: ${ p => p . theme . subText } ;
219
224
margin-right: ${ space ( 0.75 ) } ;
220
225
font-weight: ${ p => p . theme . fontWeightNormal } ;
221
226
}
222
227
` ;
223
228
224
- // TODO(Priscila): Replace this component with the Tag component
225
- const CategoryTag = styled (
226
- ( {
227
- priority : _priority ,
228
- category,
229
- ...p
230
- } : {
231
- category : string ;
232
- priority : boolean ;
233
- theme ?: any ;
234
- } ) => < div { ...p } > { category } </ div >
235
- ) `
236
- display: inline-block;
237
- padding: 1px 10px;
238
- background: ${ p => ( p . priority ? p . theme . purple200 : p . theme . gray100 ) } ;
239
- border-radius: 20px;
240
- font-size: ${ space ( 1.5 ) } ;
241
- margin: ${ space ( 0.25 ) } ${ space ( 0.5 ) } ;
242
- line-height: ${ space ( 3 ) } ;
243
- text-align: center;
244
- color: ${ p => ( p . priority ? p . theme . white : p . theme . gray500 ) } ;
245
- ` ;
246
-
247
229
const ResolveNowButton = styled ( LinkButton ) `
248
230
color: ${ p => p . theme . subText } ;
249
231
float: right;
0 commit comments