Skip to content

Commit d324b69

Browse files
committed
feat: don't display icons in toast titles
1 parent 96da5a6 commit d324b69

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

electron/renderer/components/toast/toast-list.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { EuiGlobalToastList } from '@elastic/eui';
2-
import type { EuiIconType } from '@elastic/eui/src/components/icon/icon';
32
import type { Toast } from '@elastic/eui/src/components/toast/global_toast_list';
43
import type { ReactNode } from 'react';
54
import { useState } from 'react';
@@ -33,20 +32,20 @@ export const ToastList: React.FC<ToastListProps> = (
3332
useSubscribe(['toast:add'], (toastAddProps: ToastAddProps) => {
3433
const { title, text, type } = toastAddProps;
3534

36-
let iconType: EuiIconType | undefined;
35+
// let iconType: EuiIconType | undefined;
3736
let color: Toast['color'] | undefined;
3837

3938
switch (type) {
4039
case 'success':
41-
iconType = 'check';
40+
// iconType = 'check';
4241
color = 'success';
4342
break;
4443
case 'warning':
45-
iconType = 'warning';
44+
// iconType = 'warning';
4645
color = 'warning';
4746
break;
4847
case 'danger':
49-
iconType = 'error';
48+
// iconType = 'error';
5049
color = 'danger';
5150
break;
5251
case 'info':
@@ -59,7 +58,7 @@ export const ToastList: React.FC<ToastListProps> = (
5958
id: uuid(),
6059
title,
6160
text,
62-
iconType,
61+
// iconType,
6362
color,
6463
};
6564

0 commit comments

Comments
 (0)