diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2018-04-22 12:07:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 12:07:29 -0400 |
commit | e88ce278550b9797d02fabf0783989a22be371f5 (patch) | |
tree | d9912392fc84393ea35274f9656237007b6a5c05 /app/javascript/flavours/glitch/containers/media_gallery_container.js | |
parent | d7ae97c10ae8c5a0064e3a0d9262c9f182f53a6e (diff) | |
parent | 7a68079b3fc0c80238451eb1f0264ce66e495502 (diff) |
Merge pull request #435 from ThibG/glitch-soc/features/public-modals
[Glitch] Show media modal on public pages
Diffstat (limited to 'app/javascript/flavours/glitch/containers/media_gallery_container.js')
-rw-r--r-- | app/javascript/flavours/glitch/containers/media_gallery_container.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/javascript/flavours/glitch/containers/media_gallery_container.js b/app/javascript/flavours/glitch/containers/media_gallery_container.js deleted file mode 100644 index 54bfbf453..000000000 --- a/app/javascript/flavours/glitch/containers/media_gallery_container.js +++ /dev/null @@ -1,34 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { IntlProvider, addLocaleData } from 'react-intl'; -import { getLocale } from 'mastodon/locales'; -import MediaGallery from 'flavours/glitch/components/media_gallery'; -import { fromJS } from 'immutable'; - -const { localeData, messages } = getLocale(); -addLocaleData(localeData); - -export default class MediaGalleryContainer extends React.PureComponent { - - static propTypes = { - locale: PropTypes.string.isRequired, - media: PropTypes.array.isRequired, - }; - - handleOpenMedia = () => {} - - render () { - const { locale, media, ...props } = this.props; - - return ( - <IntlProvider locale={locale} messages={messages}> - <MediaGallery - {...props} - media={fromJS(media)} - onOpenMedia={this.handleOpenMedia} - /> - </IntlProvider> - ); - } - -} |