Skip to content
Snippets Groups Projects
Commit bc6e9582 authored by Sorin Davidoi's avatar Sorin Davidoi
Browse files

feat: Swipeable media

parent a6d8d103
No related branches found
No related tags found
No related merge requests found
import React from 'react';
import ReactSwipeable from 'react-swipeable';
import LoadingIndicator from '../../../components/loading_indicator';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
......@@ -84,7 +85,9 @@ class MediaModal extends ImmutablePureComponent {
<div className='media-modal__content'>
<IconButton className='media-modal__close' title={intl.formatMessage(messages.close)} icon='times' onClick={onClose} size={16} />
{content}
<ReactSwipeable onSwipedRight={this.handlePrevClick} onSwipedLeft={this.handleNextClick}>
{content}
</ReactSwipeable>
</div>
{rightNav}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment