mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
feat: remove bold/strong from personal dashboard events (#8330)
This commit is contained in:
parent
8e7c63ac68
commit
332440491a
@ -1,4 +1,4 @@
|
|||||||
import type { FC } from 'react';
|
import type { FC, HTMLAttributes } from 'react';
|
||||||
import { Markdown } from '../common/Markdown/Markdown';
|
import { Markdown } from '../common/Markdown/Markdown';
|
||||||
import type { PersonalDashboardProjectDetailsSchema } from '../../openapi';
|
import type { PersonalDashboardProjectDetailsSchema } from '../../openapi';
|
||||||
import { UserAvatar } from '../common/UserAvatar/UserAvatar';
|
import { UserAvatar } from '../common/UserAvatar/UserAvatar';
|
||||||
@ -48,6 +48,8 @@ const StyledMarkdown = styled(Markdown)({
|
|||||||
overflowWrap: 'anywhere',
|
overflowWrap: 'anywhere',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const BoldToNormal = ({ children }: HTMLAttributes<HTMLElement>) => children;
|
||||||
|
|
||||||
export const LatestProjectEvents: FC<{
|
export const LatestProjectEvents: FC<{
|
||||||
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
|
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
|
||||||
}> = ({ latestEvents }) => {
|
}> = ({ latestEvents }) => {
|
||||||
@ -77,7 +79,9 @@ export const LatestProjectEvents: FC<{
|
|||||||
locationSettings.locale,
|
locationSettings.locale,
|
||||||
)}
|
)}
|
||||||
</Timestamp>
|
</Timestamp>
|
||||||
<StyledMarkdown>
|
<StyledMarkdown
|
||||||
|
components={{ strong: BoldToNormal }}
|
||||||
|
>
|
||||||
{event.summary ||
|
{event.summary ||
|
||||||
'No preview available for this event'}
|
'No preview available for this event'}
|
||||||
</StyledMarkdown>
|
</StyledMarkdown>
|
||||||
|
Loading…
Reference in New Issue
Block a user