Add missing TS type in UserAccount (#1063)
Summary: Adds missing TS for Store type in `react-redux` `connect`, same as in other components. Forgot to add in https://github.com/facebook/flipper/issues/1062 ## Changelog Internal change: Typescript typings improved. Pull Request resolved: https://github.com/facebook/flipper/pull/1063 Test Plan: Try to compile/do a type check. Reviewed By: nikoant Differential Revision: D21278326 Pulled By: passy fbshipit-source-id: c8e8e18c3c6d5f8904e97228540d4d7c4274124f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
931bf1f14f
commit
884d64df71
@@ -19,6 +19,7 @@ import {findDOMNode} from 'react-dom';
|
||||
import React, {PureComponent} from 'react';
|
||||
import {getUser} from '../fb-stubs/user';
|
||||
import config from '../fb-stubs/config';
|
||||
import {State as Store} from '../reducers';
|
||||
|
||||
const Container = styled(FlexRow)({
|
||||
alignItems: 'center',
|
||||
@@ -125,8 +126,6 @@ class UserAccount extends PureComponent<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
// @TODO: TS_MIGRATION
|
||||
type Store = any;
|
||||
export default connect<StateFromProps, DispatchFromProps, OwnProps, Store>(
|
||||
({user}) => ({
|
||||
user,
|
||||
|
||||
Reference in New Issue
Block a user