MCPcopy Create free account
hub / github.com/dabbott/javascript-playgrounds /

Class

components/workspace/Fullscreen.js:19–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18@pureRender
19export default class extends Component {
20
21 static defaultProps = {
22 textStyle: null,
23 }
24
25 getComputedStyles = () => {
26 const {textStyle} = this.props
27
28 return {
29 text: textStyle
30 ? prefix({...styles.text, ...textStyle})
31 : styles.text,
32 }
33 }
34
35 toggleFullscreen = () => screenfull.toggle()
36
37 render() {
38 const computedStyles = this.getComputedStyles()
39
40 return (
41 <div
42 style={computedStyles.text}
43 onClick={this.toggleFullscreen}
44 >
45 Fullscreen
46 </div>
47 )
48 }
49}

Callers

nothing calls this directly

Calls 1

prefixFunction · 0.90

Tested by

no test coverage detected