Skip to content

Commit

Permalink
Merge pull request #29055 from jeet-dhandha/fix-27802-28623
Browse files Browse the repository at this point in the history
fix: extra space when code added to private note
  • Loading branch information
jasperhuangg authored Oct 11, 2023
2 parents f6e211f + a0e2a84 commit ff2dca9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 50 deletions.
6 changes: 4 additions & 2 deletions src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import variables from '../styles/variables';
import * as Session from '../libs/actions/Session';
import Hoverable from './Hoverable';
import useWindowDimensions from '../hooks/useWindowDimensions';
import MenuItemRenderHTMLTitle from './MenuItemRenderHTMLTitle';
import RenderHTML from './RenderHTML';

const propTypes = menuItemPropTypes;

Expand Down Expand Up @@ -252,7 +252,9 @@ const MenuItem = React.forwardRef((props, ref) => {
)}
<View style={[styles.flexRow, styles.alignItemsCenter]}>
{Boolean(props.title) && (Boolean(props.shouldRenderAsHTML) || (Boolean(props.shouldParseTitle) && Boolean(html.length))) && (
<MenuItemRenderHTMLTitle title={getProcessedTitle} />
<View style={styles.renderHTMLTitle}>
<RenderHTML html={getProcessedTitle} />
</View>
)}
{!props.shouldRenderAsHTML && !props.shouldParseTitle && Boolean(props.title) && (
<Text
Expand Down
23 changes: 0 additions & 23 deletions src/components/MenuItemRenderHTMLTitle/index.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/MenuItemRenderHTMLTitle/index.native.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/MenuItemRenderHTMLTitle/propTypes.js

This file was deleted.

0 comments on commit ff2dca9

Please sign in to comment.