1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

feat: remove bold/strong from personal dashboard events (#8330)

This commit is contained in:
Mateusz Kwasniewski 2024-11-20 15:40:48 +01:00 committed by GitHub
parent 8e7c63ac68
commit 332440491a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
import type { FC } from 'react';
import type { FC, HTMLAttributes } from 'react';
import { Markdown } from '../common/Markdown/Markdown';
import type { PersonalDashboardProjectDetailsSchema } from '../../openapi';
import { UserAvatar } from '../common/UserAvatar/UserAvatar';
@ -48,6 +48,8 @@ const StyledMarkdown = styled(Markdown)({
overflowWrap: 'anywhere',
});
const BoldToNormal = ({ children }: HTMLAttributes<HTMLElement>) => children;
export const LatestProjectEvents: FC<{
latestEvents: PersonalDashboardProjectDetailsSchema['latestEvents'];
}> = ({ latestEvents }) => {
@ -77,7 +79,9 @@ export const LatestProjectEvents: FC<{
locationSettings.locale,
)}
</Timestamp>
<StyledMarkdown>
<StyledMarkdown
components={{ strong: BoldToNormal }}
>
{event.summary ||
'No preview available for this event'}
</StyledMarkdown>