fix: Add markdown to Directory descriptions (#5399)
Signed-off-by: brf153 <153hsb@gmail.com>
This commit is contained in:
parent
7934141d31
commit
3e9ab8877c
|
@ -7,6 +7,7 @@ import RoomTypeIcon from '../RoomTypeIcon';
|
|||
import styles, { ROW_HEIGHT } from './styles';
|
||||
import { themes } from '../../lib/constants';
|
||||
import { TSupportedThemes, useTheme } from '../../theme';
|
||||
import { MarkdownPreview } from '../markdown';
|
||||
|
||||
export { ROW_HEIGHT };
|
||||
|
||||
|
@ -60,9 +61,11 @@ const DirectoryItem = ({
|
|||
</Text>
|
||||
</View>
|
||||
{description ? (
|
||||
<Text style={[styles.directoryItemUsername, { color: themes[theme].auxiliaryText }]} numberOfLines={1}>
|
||||
{description}
|
||||
</Text>
|
||||
<MarkdownPreview
|
||||
msg={description}
|
||||
style={[styles.directoryItemUsername, { color: themes[theme].auxiliaryText }]}
|
||||
numberOfLines={1}
|
||||
/>
|
||||
) : null}
|
||||
</View>
|
||||
<DirectoryItemLabel text={rightLabel} theme={theme} />
|
||||
|
|
Loading…
Reference in New Issue