mirror of
https://github.com/EEVengers/ThunderScope.git
synced 2025-04-14 23:59:19 +00:00
added Redux to singleButton
This commit is contained in:
parent
f865bff4c7
commit
0a82929fe3
@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import './../../../css/sidebar/core/singleButton.css';
|
||||
|
||||
class SingleButton extends React.Component<any, any> {
|
||||
@ -24,4 +25,10 @@ class SingleButton extends React.Component<any, any> {
|
||||
}
|
||||
}
|
||||
|
||||
export default SingleButton;
|
||||
function mapStateToProps(state: { graph: any }) {
|
||||
return {
|
||||
graph: state.graph
|
||||
};
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps)(SingleButton);
|
Loading…
Reference in New Issue
Block a user