mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
12 lines
359 B
JavaScript
12 lines
359 B
JavaScript
import React from 'react';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {TOGGLE_SHADE_MODE} from '../actionTypes';
|
|
|
|
const Shade = (props) => <div id='shade' onClick={props.handleClick} />;
|
|
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
handleClick: () => dispatch({type: TOGGLE_SHADE_MODE})
|
|
});
|
|
|
|
export default connect(() => ({}), mapDispatchToProps)(Shade);
|