106 |
107 | {render(cinemaMode, showVideo, this.toggleCinemaMode)}
108 |
109 | {this.cinemaButton()}
110 |
111 | {cinemaMode
112 | ? createPortal(
113 | ,
114 | document.getElementsByTagName('body')[0]
115 | )
116 | : null}
117 |
118 |
119 | )
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/src/Components/CinemaMode/story.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | import { storiesOf } from '@storybook/react'
4 |
5 | import CinemaView from './index'
6 |
7 | storiesOf('CinemaView', module).add('Default', () => {
8 | return