Skip to content

Commit

Permalink
[joy-ui][docs] Fix wrong messages (#39602)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp authored Oct 27, 2023
1 parent edcb46b commit 1bdfb14
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"componentDescription": "⚠️ AccordionDetails must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.",
"componentDescription": "",
"propDescriptions": {
"children": {
"description": "Used to render icon or text elements inside the AccordionDetails if <code>src</code> is not set. This can be an element, or just a string."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"componentDescription": "⚠️ AccordionGroup must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.",
"componentDescription": "",
"propDescriptions": {
"children": {
"description": "Used to render icon or text elements inside the AccordionGroup if <code>src</code> is not set. This can be an element, or just a string."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"componentDescription": "⚠️ AccordionSummary must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.",
"componentDescription": "",
"propDescriptions": {
"children": {
"description": "Used to render icon or text elements inside the AccordionSummary if <code>src</code> is not set. This can be an element, or just a string."
Expand Down
2 changes: 1 addition & 1 deletion docs/translations/api-docs-joy/accordion/accordion.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"componentDescription": "⚠️ Accordion must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.",
"componentDescription": "",
"propDescriptions": {
"accordionId": {
"description": "The id to be used in the AccordionDetails which is controlled by the AccordionSummary. If not provided, the id is autogenerated."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"componentDescription": "⚠️ CardContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.",
"componentDescription": "",
"propDescriptions": {
"children": {
"description": "Used to render icon or text elements inside the CardContent if <code>src</code> is not set. This can be an element, or just a string."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"componentDescription": "⚠️ DialogContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.",
"componentDescription": "",
"propDescriptions": {
"children": {
"description": "Used to render icon or text elements inside the CardContent if <code>src</code> is not set. This can be an element, or just a string."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"componentDescription": "⚠️ DialogTitle must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.",
"componentDescription": "",
"propDescriptions": {
"children": {
"description": "Used to render icon or text elements inside the DialogTitle if <code>src</code> is not set. This can be an element, or just a string."
Expand Down
1 change: 0 additions & 1 deletion packages/mui-joy/src/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const AccordionRoot = styled(StyledListItem as unknown as 'div', {
},
});
/**
* ⚠️ Accordion must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.
*
* Demos:
*
Expand Down
1 change: 0 additions & 1 deletion packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const AccordionDetailsContent = styled('div', {
});

/**
* ⚠️ AccordionDetails must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.
*
* Demos:
*
Expand Down
1 change: 0 additions & 1 deletion packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const AccordionGroupRoot = styled(StyledList as unknown as 'div', {
});

/**
* ⚠️ AccordionGroup must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.
*
* Demos:
*
Expand Down
1 change: 0 additions & 1 deletion packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const AccordionSummaryIndicator = styled('span', {
});

/**
* ⚠️ AccordionSummary must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.
*
* Demos:
*
Expand Down
1 change: 0 additions & 1 deletion packages/mui-joy/src/CardContent/CardContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const CardContentRoot = styled(StyledCardContentRoot, {
overridesResolver: (props, styles) => styles.root,
})<{ ownerState: CardContentProps }>({});
/**
* ⚠️ CardContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.
*
* Demos:
*
Expand Down
1 change: 0 additions & 1 deletion packages/mui-joy/src/DialogContent/DialogContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const DialogContentRoot = styled(StyledCardContentRoot, {
},
}));
/**
* ⚠️ DialogContent must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.
*
* Demos:
*
Expand Down
1 change: 0 additions & 1 deletion packages/mui-joy/src/DialogTitle/DialogTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const DialogTitleRoot = styled('h2', {
const sizeToLevel = { sm: 'title-md', md: 'title-lg', lg: 'h4' } as const;

/**
* ⚠️ DialogTitle must be used as a direct child of the [Card](https://mui.com/joy-ui/react-card/) component.
*
* Demos:
*
Expand Down

0 comments on commit 1bdfb14

Please sign in to comment.