For some reason we need to explicitly state the type here.

This commit is contained in:
Gert Hengeveld 2020-11-13 19:53:43 +01:00
parent fa5ff40123
commit bda166c604

View File

@ -137,7 +137,7 @@ export interface ToolData {
story: Story | Group;
}
export const ToolRes = React.memo<ToolData & RenderData>(
export const ToolRes: FunctionComponent<ToolData & RenderData> = React.memo<ToolData & RenderData>(
({ api, story, tabs, isShown, location, path, viewMode }) => {
const { left, right } = useTools(api.getElements, tabs, viewMode, story, location, path);