Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-web
ensembl-client
Commits
c07f2a0d
Commit
c07f2a0d
authored
Feb 15, 2019
by
Imran Salam
Browse files
add types to state and dispatch map objects in Root and TrackPanel
parent
d3db38e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/ensembl/src/Root.tsx
src/ensembl/src/Root.tsx
+1
-1
src/ensembl/src/content/app/browser/track-panel/TrackPanel.tsx
...nsembl/src/content/app/browser/track-panel/TrackPanel.tsx
+2
-2
No files found.
src/ensembl/src/Root.tsx
View file @
c07f2a0d
...
...
@@ -57,7 +57,7 @@ const mapStateToProps = (state: RootState): StateProps => ({
breakpointWidth
:
getBreakpointWidth
(
state
)
});
const
mapDispatchToProps
=
{
updateBreakpointWidth
};
const
mapDispatchToProps
:
DispatchProps
=
{
updateBreakpointWidth
};
export
default
connect
(
mapStateToProps
,
...
...
src/ensembl/src/content/app/browser/track-panel/TrackPanel.tsx
View file @
c07f2a0d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment