@@ -207,6 +207,16 @@ export const CreateFeedbackModal = (props: {
207
207
</ DialogTitle >
208
208
< DialogContent dividers >
209
209
< Grid container justifyContent = "flex-start" className = { classes . root } >
210
+ { props . serverType . toLowerCase ( ) !== 'mail' &&
211
+ ! selectedTag . match ( / ( E x c e l l e n t | G o o d ) / g) ? (
212
+ < Grid xs = { 12 } >
213
+ < Alert severity = "warning" variant = "outlined" >
214
+ Note: By submitting
215
+ { feedbackType === 'FEEDBACK' ? 'feedback' : 'bug' } with this
216
+ tag, it will create an issue in { props . serverType . toLowerCase ( ) }
217
+ </ Alert >
218
+ </ Grid >
219
+ ) : null }
210
220
< Grid item xs = { 4 } >
211
221
< Typography variant = "h6" > Select type</ Typography >
212
222
< RadioGroup className = { classes . radioGroup } row >
@@ -219,7 +229,7 @@ export const CreateFeedbackModal = (props: {
219
229
< Radio
220
230
icon = { < BugReportOutlined /> }
221
231
checkedIcon = { < BugReportTwoToneIcon /> }
222
- color = "secondary "
232
+ color = "error "
223
233
/>
224
234
}
225
235
/>
@@ -249,7 +259,7 @@ export const CreateFeedbackModal = (props: {
249
259
variant = {
250
260
selectedTag === issueTitle ? 'filled' : 'outlined'
251
261
}
252
- color = "secondary "
262
+ color = "error "
253
263
onClick = { ( ) => handleChipSlection ( issueTitle ) }
254
264
label = { issueTitle }
255
265
/>
@@ -309,21 +319,13 @@ export const CreateFeedbackModal = (props: {
309
319
< Button onClick = { props . handleModalCloseFn } > Cancel</ Button >
310
320
< Button
311
321
onClick = { handleSubmitClick }
312
- color = { feedbackType === 'FEEDBACK' ? ' primary' : 'secondary' }
322
+ color = " primary"
313
323
variant = "contained"
314
324
disabled = { summary . error || summary . value . length === 0 }
315
325
>
316
326
{ feedbackType === 'FEEDBACK' ? 'Send Feedback' : 'Report Bug' }
317
327
</ Button >
318
328
</ DialogActions >
319
- { props . serverType . toLowerCase ( ) !== 'mail' &&
320
- ! selectedTag . match ( / ( E x c e l l e n t | G o o d ) / g) ? (
321
- < Alert severity = "warning" variant = "outlined" >
322
- Note: By submitting
323
- { feedbackType === 'FEEDBACK' ? 'feedback' : 'bug' } with this tag, it
324
- will create an issue in { props . serverType . toLowerCase ( ) }
325
- </ Alert >
326
- ) : null }
327
329
</ StyledPaper >
328
330
) ;
329
331
} ;
0 commit comments