Commit d324b69 1 parent 96da5a6 commit d324b69 Copy full SHA for d324b69
File tree 1 file changed +5
-6
lines changed
electron/renderer/components/toast
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { EuiGlobalToastList } from '@elastic/eui' ;
2
- import type { EuiIconType } from '@elastic/eui/src/components/icon/icon' ;
3
2
import type { Toast } from '@elastic/eui/src/components/toast/global_toast_list' ;
4
3
import type { ReactNode } from 'react' ;
5
4
import { useState } from 'react' ;
@@ -33,20 +32,20 @@ export const ToastList: React.FC<ToastListProps> = (
33
32
useSubscribe ( [ 'toast:add' ] , ( toastAddProps : ToastAddProps ) => {
34
33
const { title, text, type } = toastAddProps ;
35
34
36
- let iconType : EuiIconType | undefined ;
35
+ // let iconType: EuiIconType | undefined;
37
36
let color : Toast [ 'color' ] | undefined ;
38
37
39
38
switch ( type ) {
40
39
case 'success' :
41
- iconType = 'check' ;
40
+ // iconType = 'check';
42
41
color = 'success' ;
43
42
break ;
44
43
case 'warning' :
45
- iconType = 'warning' ;
44
+ // iconType = 'warning';
46
45
color = 'warning' ;
47
46
break ;
48
47
case 'danger' :
49
- iconType = 'error' ;
48
+ // iconType = 'error';
50
49
color = 'danger' ;
51
50
break ;
52
51
case 'info' :
@@ -59,7 +58,7 @@ export const ToastList: React.FC<ToastListProps> = (
59
58
id : uuid ( ) ,
60
59
title,
61
60
text,
62
- iconType,
61
+ // iconType,
63
62
color,
64
63
} ;
65
64
You can’t perform that action at this time.
0 commit comments