From 0a5e842f1f0095672a765a0e4c2f7a487228631d Mon Sep 17 00:00:00 2001 From: Zvonimir Fras Date: Thu, 1 Feb 2024 16:39:26 -0500 Subject: [PATCH] Use correct sendSignal type Signed-off-by: Zvonimir Fras --- player/react/src/lib/utils.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/player/react/src/lib/utils.tsx b/player/react/src/lib/utils.tsx index 0715dcfce..7c335518a 100644 --- a/player/react/src/lib/utils.tsx +++ b/player/react/src/lib/utils.tsx @@ -35,6 +35,7 @@ import { UITile } from './components/ui-tile'; import { UITileFold } from './components/ui-tile-fold'; import { UIToggle } from './components/ui-toggle'; import { kebabCase } from 'lodash'; +import { SendSignal } from './types'; export const setItemInState = (item: any, state: any, setState: (state: any) => void) => { const itemIndex = state.items.findIndex((i: any) => i.id === item.id); @@ -200,7 +201,7 @@ export const renderComponents = ( state: any, setState: (state: any) => void, setGlobalState: (state: any) => void, - sendSignal: (id: number | string, signal: string) => void + sendSignal: SendSignal ) => { if (state.hidden) { // eslint-disable-next-line react/jsx-no-useless-fragment