Skip to content

Commit 4a949fe

Browse files
committed
Remove unnecessary InputProps
1 parent 876e4e8 commit 4a949fe

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

docs/using-react-redux/annotating-connected-components-with-flow.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ type Props = {|
119119
const Com = (props: Props) => <div>{props.passthrough} {props.fromStateToProps}</div>
120120

121121
type State = {a: number};
122-
type InputProps = {
123-
forMapStateToProps: string
124-
};
125-
const mapStateToProps = (state: State, props: InputProps) => {
122+
const mapStateToProps = (state: State, props: OwnProps) => {
126123
return {
127124
fromStateToProps: 'str' + state.a
128125
}

website/versioned_docs/version-5.x/using-react-redux/annotating-connected-components-with-flow.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ type Props = {|
120120
const Com = (props: Props) => <div>{props.passthrough} {props.fromStateToProps}</div>
121121

122122
type State = {a: number};
123-
type InputProps = {
124-
forMapStateToProps: string
125-
};
126-
const mapStateToProps = (state: State, props: InputProps) => {
123+
const mapStateToProps = (state: State, props: OwnProps) => {
127124
return {
128125
fromStateToProps: 'str' + state.a
129126
}

0 commit comments

Comments
 (0)