fix: use CircleErrorIcon instead of CircleXIcon for errors
This commit is contained in:
parent
5aca231f2a
commit
2bf7709ba3
3 changed files with 11 additions and 11 deletions
|
|
@ -29,10 +29,10 @@ const events = new TypedEventEmitter<{
|
|||
errored: [unknown]
|
||||
}>()
|
||||
|
||||
const CircleXIcon = lookupGeneratedIconComponent(
|
||||
'CircleXIcon',
|
||||
'CircleXIcon-secondary',
|
||||
'CircleXIcon-primary',
|
||||
const CircleErrorIcon = lookupGeneratedIconComponent(
|
||||
'CircleErrorIcon',
|
||||
'CircleErrorIcon-secondary',
|
||||
'CircleErrorIcon-primary',
|
||||
)
|
||||
|
||||
let intercepted = false
|
||||
|
|
@ -110,7 +110,7 @@ export function connect() {
|
|||
|
||||
ToastActionCreators.open({
|
||||
key: 'DEVTOOLS_ERROR',
|
||||
IconComponent: CircleXIcon,
|
||||
IconComponent: CircleErrorIcon,
|
||||
content: err,
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -24,10 +24,10 @@ const events = new TypedEventEmitter<{
|
|||
errored: [unknown]
|
||||
}>()
|
||||
|
||||
const CircleXIcon = lookupGeneratedIconComponent(
|
||||
'CircleXIcon',
|
||||
'CircleXIcon-secondary',
|
||||
'CircleXIcon-primary',
|
||||
const CircleErrorIcon = lookupGeneratedIconComponent(
|
||||
'CircleErrorIcon',
|
||||
'CircleErrorIcon-secondary',
|
||||
'CircleErrorIcon-primary',
|
||||
)
|
||||
|
||||
export function connect() {
|
||||
|
|
@ -54,7 +54,7 @@ export function connect() {
|
|||
|
||||
ToastActionCreators.open({
|
||||
key: 'REACT_DEVTOOLS_ERROR',
|
||||
IconComponent: CircleXIcon,
|
||||
IconComponent: CircleErrorIcon,
|
||||
content: err,
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const Filters: FilterAndSortActionSheetProps['filters'] = {
|
|||
filter: plugin => !isPluginEnabled(plugin),
|
||||
},
|
||||
'Has Errors': {
|
||||
icon: getAssetIdByName('CircleXIcon')!,
|
||||
icon: getAssetIdByName('CircleErrorIcon')!,
|
||||
filter: plugin => plugin.errors.length > 0,
|
||||
},
|
||||
Internal: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue