mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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 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>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user