Skip to content

Commit

Permalink
Merge 1aab35a into c07d566
Browse files Browse the repository at this point in the history
  • Loading branch information
erzhan-temir-mamyrov committed Sep 26, 2022
2 parents c07d566 + 1aab35a commit 26daf82
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
12 changes: 6 additions & 6 deletions packages/react/src/components/Table/TablePropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ export const RowActionsStatePropTypes = PropTypes.arrayOf(

export const EmptyStatePropTypes = PropTypes.oneOfType([
PropTypes.shape({
message: PropTypes.node.isRequired,
messageBody: PropTypes.node,
message: PropTypes.string.isRequired,
messageBody: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
/* Show a different message if no content is in the table matching the filters */
messageWithFilters: PropTypes.node,
messageWithFiltersBody: PropTypes.node,
messageWithFilters: PropTypes.string,
messageWithFiltersBody: PropTypes.string,
/* If a label is not provided, no action button will be rendered */
buttonLabel: PropTypes.node,
buttonLabel: PropTypes.string,
/* Show a different button label if no content is in the table matching the filters */
buttonLabelWithFilters: PropTypes.node,
buttonLabelWithFilters: PropTypes.string,
}),
/* If a React element is provided, it will be rendered in place of the default */
PropTypes.element,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,23 +494,33 @@ Map {
"args": Array [
Object {
"buttonLabel": Object {
"type": "node",
"type": "string",
},
"buttonLabelWithFilters": Object {
"type": "node",
"type": "string",
},
"message": Object {
"isRequired": true,
"type": "node",
"type": "string",
},
"messageBody": Object {
"type": "node",
"args": Array [
Array [
Object {
"type": "node",
},
Object {
"type": "string",
},
],
],
"type": "oneOfType",
},
"messageWithFilters": Object {
"type": "node",
"type": "string",
},
"messageWithFiltersBody": Object {
"type": "node",
"type": "string",
},
},
],
Expand Down Expand Up @@ -1759,23 +1769,33 @@ Map {
"args": Array [
Object {
"buttonLabel": Object {
"type": "node",
"type": "string",
},
"buttonLabelWithFilters": Object {
"type": "node",
"type": "string",
},
"message": Object {
"isRequired": true,
"type": "node",
"type": "string",
},
"messageBody": Object {
"type": "node",
"args": Array [
Array [
Object {
"type": "node",
},
Object {
"type": "string",
},
],
],
"type": "oneOfType",
},
"messageWithFilters": Object {
"type": "node",
"type": "string",
},
"messageWithFiltersBody": Object {
"type": "node",
"type": "string",
},
},
],
Expand Down

0 comments on commit 26daf82

Please sign in to comment.