Commit 4e8ea6f 1 parent dd9c439 commit 4e8ea6f Copy full SHA for 4e8ea6f
File tree 1 file changed +2
-2
lines changed
electron/renderer/components/toast
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { useState } from 'react';
5
5
import { v4 as uuid } from 'uuid' ;
6
6
import { useLogger } from '../../hooks/logger.jsx' ;
7
7
import { useSubscribe } from '../../hooks/pubsub.jsx' ;
8
- import type { PubSubData } from '../../types/pubsub.types.js' ;
8
+ import type { PubSubEvent } from '../../types/pubsub.types.js' ;
9
9
10
10
export interface ToastListProps {
11
11
/**
@@ -24,7 +24,7 @@ export const ToastList: React.FC<ToastListProps> = (
24
24
25
25
const [ toasts , setToasts ] = useState < Array < Toast > > ( [ ] ) ;
26
26
27
- useSubscribe ( 'toast:add' , ( toastData : PubSubData . ToastAdd ) => {
27
+ useSubscribe ( 'toast:add' , ( toastData : PubSubEvent . ToastAdd ) => {
28
28
const { title, text, type } = toastData ;
29
29
30
30
// let iconType: EuiIconType | undefined;
You can’t perform that action at this time.
0 commit comments