diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 981e8e1..7fd0377 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -69,7 +69,7 @@ class Main extends Component { this.setState({faq: !this.state.faq}); } renderCloseButton(){ - return } @@ -97,7 +97,7 @@ class Main extends Component { showPlayButton={false} startIndex={this.state.currentImage} showThumbnails={false} - renderCustomControls={this.renderCloseButton} + renderCustomControls={() => {this.renderCloseButton}} /> }