|
|
@ -29,19 +29,19 @@ export default class MediaContainer extends PureComponent {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
handleOpenMedia = (media, index) => {
|
|
|
|
handleOpenMedia = (media, index) => {
|
|
|
|
document.body.classList.add('media-standalone__body');
|
|
|
|
document.body.classList.add('with-modals--active');
|
|
|
|
this.setState({ media, index });
|
|
|
|
this.setState({ media, index });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handleOpenVideo = (video, time) => {
|
|
|
|
handleOpenVideo = (video, time) => {
|
|
|
|
const media = ImmutableList([video]);
|
|
|
|
const media = ImmutableList([video]);
|
|
|
|
|
|
|
|
|
|
|
|
document.body.classList.add('media-standalone__body');
|
|
|
|
document.body.classList.add('with-modals--active');
|
|
|
|
this.setState({ media, time });
|
|
|
|
this.setState({ media, time });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
handleCloseMedia = () => {
|
|
|
|
handleCloseMedia = () => {
|
|
|
|
document.body.classList.remove('media-standalone__body');
|
|
|
|
document.body.classList.remove('with-modals--active');
|
|
|
|
this.setState({ media: null, index: null, time: null });
|
|
|
|
this.setState({ media: null, index: null, time: null });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|