Skip to content

Commit ef234fb

Browse files
committed
fix(docs): fix type issues related to React 18
1 parent c576934 commit ef234fb

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

packages/fluentui/docs/src/examples/components/MenuButton/Usage/MenuButtonExampleOn.shorthand.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Alert, Button, Flex, MenuButton } from '@fluentui/react-northstar';
33
import { ExpandIcon } from '@fluentui/react-icons-northstar';
44

55
class MenuButtonExampleOn extends React.Component {
6+
context: any;
67
state = { alert: false };
78

89
showAlert = () => {

packages/fluentui/docs/src/examples/components/Popup/Usage/PopupExampleContextOnElement.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const contentWithButtons = (
99
);
1010

1111
class PopupContextOnElement extends React.Component {
12+
context: any;
1213
state = { alert: false };
1314

1415
showAlert = () => {

packages/fluentui/docs/src/examples/components/Popup/Usage/PopupExampleOn.shorthand.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Alert, Button, Flex, Popup } from '@fluentui/react-northstar';
33
import { MoreIcon } from '@fluentui/react-icons-northstar';
44

55
class PopupExampleOn extends React.Component {
6+
context: any;
67
state = { alert: false };
78

89
showAlert = () => {

packages/fluentui/docs/src/examples/components/Popup/Usage/PopupExampleOnMultiple.shorthand.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Alert, Button, Flex, Popup } from '@fluentui/react-northstar';
33
import { MoreIcon } from '@fluentui/react-icons-northstar';
44

55
class PopupExampleOnMultiple extends React.Component {
6+
context: any;
67
state = { alert: false };
78

89
showAlert = () => {

packages/fluentui/docs/src/examples/components/Popup/Usage/PopupExampleOnWithFocusTrap.shorthand.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const contentWithButtons = (
1010
);
1111

1212
class PopupExampleOnWithFocusTrap extends React.Component {
13+
context: any;
1314
state = { alert: false };
1415

1516
showAlert = () => {

0 commit comments

Comments
 (0)