Commit c07f2a0d authored by Imran Salam's avatar Imran Salam
Browse files

add types to state and dispatch map objects in Root and TrackPanel

parent d3db38e4
......@@ -57,7 +57,7 @@ const mapStateToProps = (state: RootState): StateProps => ({
breakpointWidth: getBreakpointWidth(state)
});
const mapDispatchToProps = { updateBreakpointWidth };
const mapDispatchToProps: DispatchProps = { updateBreakpointWidth };
export default connect(
mapStateToProps,
......
......@@ -73,7 +73,7 @@ const TrackPanel: FunctionComponent<TrackPanelProps> = (
);
};
const mapStateToProps = (state: RootState) => ({
const mapStateToProps = (state: RootState): StateProps => ({
breakpointWidth: getBreakpointWidth(state),
currentTrack: getCurrentTrack(state),
drawerOpened: getDrawerOpened(state),
......@@ -81,7 +81,7 @@ const mapStateToProps = (state: RootState) => ({
trackPanelOpened: getTrackPanelOpened(state)
});
const mapDispatchToProps = {
const mapDispatchToProps: DispatchProps = {
changeCurrentTrack,
toggleDrawer,
toggleTrackPanel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment