From 501a3cf944f22b12fca0a33133fbb22ecd5ac4c8 Mon Sep 17 00:00:00 2001 From: Sorin Davidoi Date: Thu, 8 Jun 2017 17:41:43 +0200 Subject: [PATCH] feat: Swipeable media --- .../mastodon/features/ui/components/media_modal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/ui/components/media_modal.js b/app/javascript/mastodon/features/ui/components/media_modal.js index cff1a0cf52..c6b293aeb7 100644 --- a/app/javascript/mastodon/features/ui/components/media_modal.js +++ b/app/javascript/mastodon/features/ui/components/media_modal.js @@ -1,4 +1,5 @@ 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 {
- {content} + + {content} +
{rightNav}