-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3659 from Viacheslav80/fix_copy_message_menu
fix contextMenu on Mobile
- Loading branch information
Showing
6 changed files
with
102 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import BaseRenderHTML from './BaseRenderHTML'; | ||
import withWindowDimensions from '../withWindowDimensions'; | ||
import { | ||
propTypes, | ||
defaultProps, | ||
} from './renderHTMLPropTypes'; | ||
|
||
const RenderHTML = ({html, debug, isSmallScreenWidth}) => ( | ||
<BaseRenderHTML | ||
textSelectable={!isSmallScreenWidth} | ||
html={html} | ||
debug={debug} | ||
/> | ||
); | ||
|
||
RenderHTML.displayName = 'RenderHTML'; | ||
RenderHTML.propTypes = propTypes; | ||
RenderHTML.defaultProps = defaultProps; | ||
|
||
export default withWindowDimensions(RenderHTML); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import BaseRenderHTML from './BaseRenderHTML'; | ||
import { | ||
propTypes, | ||
defaultProps, | ||
} from './renderHTMLPropTypes'; | ||
|
||
const RenderHTML = ({html, debug}) => ( | ||
<BaseRenderHTML | ||
html={html} | ||
debug={debug} | ||
/> | ||
); | ||
|
||
RenderHTML.displayName = 'RenderHTML'; | ||
RenderHTML.propTypes = propTypes; | ||
RenderHTML.defaultProps = defaultProps; | ||
|
||
export default RenderHTML; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
const propTypes = { | ||
/** HTML string to render */ | ||
html: PropTypes.string.isRequired, | ||
|
||
/** Optional debug flag */ | ||
debug: PropTypes.bool, | ||
}; | ||
|
||
const defaultProps = { | ||
debug: false, | ||
}; | ||
|
||
export {propTypes, defaultProps}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters