Skip to content

Commit

Permalink
[docs] Fix v4 docs <b> appearing in notifications (#41390)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwangsc committed Mar 7, 2024
1 parent 0faf15d commit a8ae789
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/notifications.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[
{
"id": 68,
"title": "<b>Check out Base UI today</b> 💥",
"title": "Check out Base UI today 💥",
"text": "Love Material UI, but don't need Material Design? Try Base UI, the new \"unstyled\" alternative. <a style=\"color: inherit;\" data-ga-event-category=\"Blog\" data-ga-event-action=\"notification\" data-ga-event-label=\"introducing-base-ui\" href=\"/blog/introducing-base-ui/\">Read more in this announcement</a>."
},
{
"id": 78,
"title": "<b>MUI X v6.18.x and the latest improvements before the next major</b>",
"title": "MUI X v6.18.x and the latest improvements before the next major",
"text": "New stable components, polished features, better performance and more. Check out the details in our <a style=\"color: inherit;\" data-ga-event-category=\"Announcement\" data-ga-event-action=\"notification\" data-ga-event-label=\"mui-x-end-v6\" href=\"https://mui.com/blog/mui-x-end-v6-features/\">recent blog post</a>."
},
{
"id": 79,
"title": "<b>A new Developer Survey is open</b>",
"title": "A new Developer Survey is open",
"text": "Take a few minutes to share your feedback and expectations in the <a style=\"color: inherit;\" data-ga-event-category=\"Announcement\" data-ga-event-action=\"notification\" data-ga-event-label=\"mui-survey\" href=\"https://tally.so/r/3Ex4PN?source=docs-notification\">Developer Survey</a>."
},
{
"id": 80,
"title": "<b>MUI X v7.0.0-beta.0</b>",
"title": "MUI X v7.0.0-beta.0",
"text": "Featuring new components and multiple enhancements for both developers and end-users. Discover all the specifics in the <a style=\"color: inherit;\" data-ga-event-category=\"Announcement\" data-ga-event-action=\"notification\" data-ga-event-label=\"mui-x-v7-beta\" href=\"https://mui.com/blog/mui-x-v7-beta/\">announcement blog post</a>."
}
]
5 changes: 1 addition & 4 deletions docs/src/modules/components/Notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,7 @@ export default function Notifications() {
<React.Fragment key={message.id}>
<ListItem alignItems="flex-start">
<Typography gutterBottom>
<span
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: message.title }}
/>
<b>{message.title}</b>
</Typography>
<Typography gutterBottom variant="body2" color="text.secondary">
<span
Expand Down

0 comments on commit a8ae789

Please sign in to comment.