Skip to content

Commit

Permalink
[material-ui][docs][TableRow] Escape markup in children prop so doc…
Browse files Browse the repository at this point in the history
…gen tools don't parse it as HTML (#40992)

Signed-off-by: Steve Miller <millerized@me.com>
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
millerized and ZeeshanTamboli committed Feb 12, 2024
1 parent 7a26de4 commit 6ab4972
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/translations/api-docs/table-row/table-row.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"componentDescription": "Will automatically set dynamic row height\nbased on the material table element parent (head, body, etc).",
"propDescriptions": {
"children": {
"description": "Should be valid &lt;tr&gt; children such as <code>TableCell</code>."
"description": "Should be valid <code>&lt;tr&gt;</code> children such as <code>TableCell</code>."
},
"classes": { "description": "Override or extend the styles applied to the component." },
"component": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/TableRow/TableRow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TableRowClasses } from './tableRowClasses';

export interface TableRowOwnProps {
/**
* Should be valid <tr> children such as `TableCell`.
* Should be valid `<tr>` children such as `TableCell`.
*/
children?: React.ReactNode;
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/TableRow/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ TableRow.propTypes /* remove-proptypes */ = {
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Should be valid <tr> children such as `TableCell`.
* Should be valid `<tr>` children such as `TableCell`.
*/
children: PropTypes.node,
/**
Expand Down

0 comments on commit 6ab4972

Please sign in to comment.