Skip to content

Commit e7e1e2d

Browse files
chore: added render markdown in note component
Signed-off-by: rishabhsharma1997 <[email protected]>
1 parent a25a09a commit e7e1e2d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/custom/Note/Note.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { styled } from '@mui/material';
22
import { FC } from 'react';
3+
import { RenderMarkdownTooltip } from '../Markdown';
34

45
interface AlertProps {
56
type?: 'success' | 'warning' | 'note';
67
title?: string;
7-
content?: string;
8+
content: string;
89
}
910

1011
const NoteWrapper = styled('div')<NoteWrapperProps>(({ type, theme }) => ({
@@ -40,7 +41,9 @@ const Note: FC<AlertProps> = ({ type = 'note', title, content }) => {
4041
return (
4142
<NoteWrapper type={type}>
4243
<NoteHeading type={type}>{title}</NoteHeading>
43-
<NoteContent>{content}</NoteContent>
44+
<NoteContent>
45+
<RenderMarkdownTooltip content={content} />
46+
</NoteContent>
4447
</NoteWrapper>
4548
);
4649
};

0 commit comments

Comments
 (0)