componentDidMount() {
this.mounted = true;
this.fetchContent(this.props.params.splat || 'index');
+
+ const footer = document.getElementById('footer');
+ if (footer) {
+ footer.classList.add('page-footer-with-sidebar', 'documentation-footer');
+ }
}
componentWillReceiveProps(nextProps: Props) {
componentWillUnmount() {
this.mounted = false;
+
+ const footer = document.getElementById('footer');
+ if (footer) {
+ footer.classList.remove('page-footer-with-sidebar', 'documentation-footer');
+ }
}
fetchContent = (path: string) => {