Skip to content

Commit 4e8ea6f

Browse files
committed
fix(toast): update toast subscription type to use PubSubEvent
1 parent dd9c439 commit 4e8ea6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useState } from 'react';
55
import { v4 as uuid } from 'uuid';
66
import { useLogger } from '../../hooks/logger.jsx';
77
import { useSubscribe } from '../../hooks/pubsub.jsx';
8-
import type { PubSubData } from '../../types/pubsub.types.js';
8+
import type { PubSubEvent } from '../../types/pubsub.types.js';
99

1010
export interface ToastListProps {
1111
/**
@@ -24,7 +24,7 @@ export const ToastList: React.FC<ToastListProps> = (
2424

2525
const [toasts, setToasts] = useState<Array<Toast>>([]);
2626

27-
useSubscribe('toast:add', (toastData: PubSubData.ToastAdd) => {
27+
useSubscribe('toast:add', (toastData: PubSubEvent.ToastAdd) => {
2828
const { title, text, type } = toastData;
2929

3030
// let iconType: EuiIconType | undefined;

0 commit comments

Comments
 (0)