Skip to content

Commit

Permalink
[docs] Fix actionsRef propTypes (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks authored Feb 21, 2025
1 parent 875ec43 commit 568fc1c
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/reference/generated/alert-dialog-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "(open, event, reason) => void",
"description": "Event handler called when the dialog is opened or closed."
},
"action": {
"actionsRef": {
"type": "{ current: { unmount: func } }",
"description": "A ref to imperative actions."
},
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/generated/dialog-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "(open, event, reason) => void",
"description": "Event handler called when the dialog is opened or closed."
},
"action": {
"actionsRef": {
"type": "{ current: { unmount: func } }",
"description": "A ref to imperative actions."
},
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/generated/menu-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "(open, event) => void",
"description": "Event handler called when the menu is opened or closed."
},
"action": {
"actionsRef": {
"type": "{ current: { unmount: func } }",
"description": "A ref to imperative actions."
},
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/generated/popover-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "(open, event, reason) => void",
"description": "Event handler called when the popover is opened or closed."
},
"action": {
"actionsRef": {
"type": "{ current: { unmount: func } }",
"description": "A ref to imperative actions."
},
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/generated/preview-card-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "(open, event, reason) => void",
"description": "Event handler called when the preview card is opened or closed."
},
"action": {
"actionsRef": {
"type": "{ current: { unmount: func } }",
"description": "A ref to imperative actions."
},
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/generated/tooltip-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "(open, event, reason) => void",
"description": "Event handler called when the tooltip is opened or closed."
},
"action": {
"actionsRef": {
"type": "{ current: { unmount: func } }",
"description": "A ref to imperative actions."
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/alert-dialog/root/AlertDialogRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ AlertDialogRoot.propTypes /* remove-proptypes */ = {
/**
* A ref to imperative actions.
*/
action: PropTypes.shape({
actionsRef: PropTypes.shape({
current: PropTypes.shape({
unmount: PropTypes.func.isRequired,
}).isRequired,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/dialog/root/DialogRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ DialogRoot.propTypes /* remove-proptypes */ = {
/**
* A ref to imperative actions.
*/
action: PropTypes.shape({
actionsRef: PropTypes.shape({
current: PropTypes.shape({
unmount: PropTypes.func.isRequired,
}).isRequired,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/menu/root/MenuRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ MenuRoot.propTypes /* remove-proptypes */ = {
/**
* A ref to imperative actions.
*/
action: PropTypes.shape({
actionsRef: PropTypes.shape({
current: PropTypes.shape({
unmount: PropTypes.func.isRequired,
}).isRequired,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/popover/root/PopoverRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ PopoverRoot.propTypes /* remove-proptypes */ = {
/**
* A ref to imperative actions.
*/
action: PropTypes.shape({
actionsRef: PropTypes.shape({
current: PropTypes.shape({
unmount: PropTypes.func.isRequired,
}).isRequired,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/preview-card/root/PreviewCardRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ PreviewCardRoot.propTypes /* remove-proptypes */ = {
/**
* A ref to imperative actions.
*/
action: PropTypes.shape({
actionsRef: PropTypes.shape({
current: PropTypes.shape({
unmount: PropTypes.func.isRequired,
}).isRequired,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/tooltip/root/TooltipRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ TooltipRoot.propTypes /* remove-proptypes */ = {
/**
* A ref to imperative actions.
*/
action: PropTypes.shape({
actionsRef: PropTypes.shape({
current: PropTypes.shape({
unmount: PropTypes.func.isRequired,
}).isRequired,
Expand Down

0 comments on commit 568fc1c

Please sign in to comment.