import styles from './CloseAboutButton.css';

import React, { Component } from 'react';
import { setAboutVisibilityOption } from '../../actions';

export default class CloseAboutButton extends Component {
    componentDidMount() {
        const { store } = this.context;
        this.unsubscribe = store.subscribe(() => {
            this.forceUpdate();
        })
    }
    componentWillUnmount() {
        this.unsubscribe();
    }
    render() {
        const { store } = this.context;
        return (
            <div
                className={
                    styles.root
                }
                onClick={
                    (e) => {
                        e.stopPropagation();
                        store.dispatch(setAboutVisibilityOption('CLOSE_ABOUT'));
                    }
                }
            >Return
            </div>
        )
    }
}

CloseAboutButton.contextTypes = {
    store: React.PropTypes.object
}
@@ -143,355 +143,96 @@
 s';%0A
-%0Aex
+im
 port 
-default class CloseAboutButton extends Component %7B%0A    componentDidMount() %7B%0A        const %7B store %7D = this.context;%0A        this.unsubscribe = store.subscribe(() =%3E %7B%0A            this.forceUpdate();%0A        %7D)%0A    %7D%0A    componentWillUnmount() %7B%0A        this.unsubscribe();%0A    %7D%0A    render() %7B%0A        const %7B store %7D = this.context;%0A    
+%7B connect %7D from 'react-redux';%0A%0Aexport let CloseAboutButton = (%7Bdispatch%7D) =%3E %7B%0A
     
@@ -252,21 +252,13 @@
     
-    
 %3Cdiv%0A
-    
     
@@ -293,20 +293,16 @@
         
-    
 styles.r
@@ -313,32 +313,26 @@
             
-    %7D%0A  
+%7D%0A
             
@@ -331,18 +331,16 @@
         
-  
 onClick=
@@ -357,20 +357,16 @@
         
-    
 (e) =%3E %7B
@@ -386,20 +386,16 @@
         
-    
 e.stopPr
@@ -431,18 +431,8 @@
     
-    store.
 disp
@@ -490,34 +490,26 @@
             
-    %7D%0A    
+%7D%0A
             
@@ -522,20 +522,16 @@
     
-    
 %3EReturn%0A
     
@@ -526,20 +526,16 @@
 %3EReturn%0A
-    
         
@@ -549,19 +549,9 @@
     
-    )%0A    %7D
+)
 %0A%7D%0A%0A
@@ -570,57 +570,36 @@
 tton
-.contextTypes = %7B%0A    store: React.PropTypes.object%0A%7D
+ = connect()(CloseAboutButton);%0A

Refactor CloseAboutButton to use 'connect' to receive dispatch