Skip to content

Commit 6320dfd

Browse files
committed
fix(storybook): fix missing implicit children in React.FC
1 parent 28b8e2a commit 6320dfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/storybook/src/decorators/withKeytipLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import { KeytipLayer } from '@fluentui/react/lib/Keytips';
33

4-
export const KeytipLayerWrapper: React.FunctionComponent<{}> = props => {
4+
export const KeytipLayerWrapper: React.FunctionComponent<React.PropsWithChildren> = props => {
55
return (
66
<>
77
<KeytipLayer content="Alt Windows" />

packages/storybook/src/decorators/withStrictMode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import type { Decorator } from '@storybook/react';
33

4-
const StrictModeWrapper: React.FunctionComponent<{ strictMode: boolean }> = props => {
4+
const StrictModeWrapper: React.FunctionComponent<React.PropsWithChildren<{ strictMode: boolean }>> = props => {
55
return props.strictMode ? <React.StrictMode>{props.children}</React.StrictMode> : <>{props.children}</>;
66
};
77

0 commit comments

Comments
 (0)