mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
For some reason we need to explicitly state the type here.
This commit is contained in:
parent
fa5ff40123
commit
bda166c604
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user