MM-9647 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap (#1471)

* MM-9467 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap

* MM-9467 Renamed wrapWithPreventDoubleTap to preventDoubleTap
This commit is contained in:
Harrison Healey
2018-03-02 11:22:37 +00:00
committed by Saturnino Abril
parent 30f0f6eef3
commit 80c09b588d
32 changed files with 112 additions and 114 deletions

View File

@@ -15,7 +15,7 @@ import {
import CustomPropTypes from 'app/constants/custom_prop_types';
import FormattedText from 'app/components/formatted_text';
import {getDisplayNameForLanguage} from 'app/utils/markdown';
import {wrapWithPreventDoubleTap} from 'app/utils/tap';
import {preventDoubleTap} from 'app/utils/tap';
import {changeOpacity, makeStyleSheetFromTheme} from 'app/utils/theme';
import mattermostManaged from 'app/mattermost_managed';
@@ -36,7 +36,7 @@ class MarkdownCodeBlock extends React.PureComponent {
language: '',
};
handlePress = wrapWithPreventDoubleTap(() => {
handlePress = preventDoubleTap(() => {
const {intl, navigator, theme} = this.props;
const languageDisplayName = getDisplayNameForLanguage(this.props.language);