diff --git a/packages/cms/src/components/Viz/Options.jsx b/packages/cms/src/components/Viz/Options.jsx index 38dad21ff..788ceb640 100644 --- a/packages/cms/src/components/Viz/Options.jsx +++ b/packages/cms/src/components/Viz/Options.jsx @@ -48,7 +48,6 @@ const getBackground = elem => { }; class Options extends Component { - constructor(props) { super(props); @@ -323,7 +322,7 @@ class Options extends Component { render() { const {backgroundColor, imageContext, imageFormat, imageProcessing, includeSlug, dialogOpen, results, focusOptions} = this.state; - const {data, iconOnly, slug, t, transitionDuration} = this.props; + const {data, iconOnly, isFullscreen, onToggleFullscreen, slug, t, transitionDuration} = this.props; // construct URL from a combination of redux & context (#537) const domain = this.props.location.origin; @@ -414,6 +413,10 @@ class Options extends Component { + + this.viz = comp } > @@ -118,6 +127,8 @@ class Viz extends Component { slug={slug } title={title || sectionTitle || slug} iconOnly={size && size.width < 320 ? true : false} + isFullscreen={isFullscreen} + onToggleFullscreen={() => this.setState({isFullscreen: !isFullscreen})} /> : "" }