Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Add some types
Browse files Browse the repository at this point in the history
  • Loading branch information
pm5 committed Jun 4, 2018
1 parent c70e35c commit f27121b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sensemap/src/components/Inbox/CardActions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function CardActions({ card, actions, senseMap }: Props) {
);
}

export default connect<StateFromProps, DispatchFromProps>(
export default connect<StateFromProps, DispatchFromProps, OwnProps>(
(state: T.State) => ({
senseMap: state.senseMap,
}),
Expand Down
2 changes: 1 addition & 1 deletion sensemap/src/components/MapPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class MapPage extends React.Component<Props> {
<Sidebar.Pusher>
<ResizeDetector handleWidth handleHeight onResize={this.handleResize} />
<Viewport>
{(props) => (<Map id={senseMap.map} {...props} />)}
{(props: V.State) => (<Map id={senseMap.map} {...props} />)}
</Viewport>
<ObjectMenu />
<Breadcrumb />
Expand Down

0 comments on commit f27121b

Please sign in to comment.