mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-11-01 23:21:11 +01:00
2bbf987a0a
* Redesign video player * Use new video player on static public pages too * Use media gallery component on static public pages too * Pause video when hiding it * Full-screen sizing on WebKit * Add aria labels to video player buttons * Display link card on public status page * Fix fullscreen from modal sizing issue * Remove contain: strict property to fix fullscreen from columns
26 lines
607 B
JavaScript
26 lines
607 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { IntlProvider, addLocaleData } from 'react-intl';
|
|
import { getLocale } from '../locales';
|
|
import Video from '../features/video';
|
|
|
|
const { localeData, messages } = getLocale();
|
|
addLocaleData(localeData);
|
|
|
|
export default class VideoContainer extends React.PureComponent {
|
|
|
|
static propTypes = {
|
|
locale: PropTypes.string.isRequired,
|
|
};
|
|
|
|
render () {
|
|
const { locale, ...props } = this.props;
|
|
|
|
return (
|
|
<IntlProvider locale={locale} messages={messages}>
|
|
<Video {...props} />
|
|
</IntlProvider>
|
|
);
|
|
}
|
|
|
|
}
|