Skip to content

Commit 78c8994

Browse files
authored
fix(kyb-app): no longer failing build due to implicit any (#2085)
1 parent e61dd77 commit 78c8994

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

apps/kyb-app/src/components/organisms/UIRenderer/UIRenderer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export const UIRenderer = ({ schema, elements = baseElements }: UIRendererProps)
2121
return (
2222
<UiRendererContext.Provider value={context}>
2323
<BlocksComponent Block={Block} cells={elements as any} blocks={blocks}>
24-
{(Cell, cell) => (Cell ? <Cell {...cell} /> : <div>not implemented</div>)}
24+
{
25+
// @ts-ignore
26+
(Cell, cell) => (Cell ? <Cell {...cell} /> : <div>not implemented</div>)
27+
}
2528
</BlocksComponent>
2629
</UiRendererContext.Provider>
2730
);

apps/kyb-app/src/components/organisms/UIRenderer/elements/Cell/Cell.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export const Cell = ({ options = {}, childrens: _childrens = [] }: CellProps) =>
3030
//@ts-ignore
3131
cells={elements}
3232
>
33-
{(Cell, cell) => (Cell ? <Cell {...cell} /> : null)}
33+
{
34+
// @ts-ignore
35+
(Cell, cell) => (Cell ? <Cell {...cell} /> : null)
36+
}
3437
</BlocksComponent>
3538
));
3639
}, [columns, _childrens, elements]);

apps/kyb-app/src/components/organisms/UIRenderer/elements/Task/Task.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ export const Task = ({ options = {}, childrens, ...rest }: TaskProps) => {
2222
return (
2323
<Component className={className} style={styles} data-test-id="task">
2424
<BlocksComponent
25-
Block={({ children }) => <>{children}</>}
25+
Block={
26+
// @ts-ignore
27+
({ children }) => <>{children}</>
28+
}
2629
blocks={childrens}
2730
//@ts-ignore
2831
cells={baseElements}
2932
>
30-
{(Cell, cell) => (Cell ? <Cell {...cell} /> : null)}
33+
{
34+
// @ts-ignore
35+
(Cell, cell) => (Cell ? <Cell {...cell} /> : null)
36+
}
3137
</BlocksComponent>
3238
</Component>
3339
);

0 commit comments

Comments
 (0)