fix: add channel name when the text is bold (#5319)
* added changes in the Bold.tsx file for Channel Mention Signed-off-by: bhandari <153hsb@gmail.com> * added changes for strike and italic Signed-off-by: bhandari <153hsb@gmail.com> --------- Signed-off-by: bhandari <153hsb@gmail.com> Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
parent
93c8409354
commit
5b335bdc37
|
@ -30,6 +30,8 @@ const Bold = ({ value }: IBoldProps) => (
|
|||
return <Strike value={block.value} />;
|
||||
case 'ITALIC':
|
||||
return <Italic value={block.value} />;
|
||||
case 'MENTION_CHANNEL':
|
||||
return <Plain value={`#${block.value.value}`} />;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ const Italic = ({ value }: IItalicProps) => (
|
|||
return <Strike value={block.value} />;
|
||||
case 'BOLD':
|
||||
return <Bold value={block.value} />;
|
||||
case 'MENTION_CHANNEL':
|
||||
return <Plain value={`#${block.value.value}`} />;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ const Strike = ({ value }: IStrikeProps) => (
|
|||
return <Bold value={block.value} />;
|
||||
case 'ITALIC':
|
||||
return <Italic value={block.value} />;
|
||||
case 'MENTION_CHANNEL':
|
||||
return <Plain value={`#${block.value.value}`} />;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue