Skip to content

Commit

Permalink
Use correct sendSignal type
Browse files Browse the repository at this point in the history
Signed-off-by: Zvonimir Fras <[email protected]>
zvonimirfras committed Feb 1, 2024
1 parent eed26a9 commit 0a5e842
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion player/react/src/lib/utils.tsx
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0a5e842

Please sign in to comment.