Skip to content

Commit 3142336

Browse files
committed
Move Static Typing page to get it to show up in 7.1 sidebar
1 parent 2bc483a commit 3142336

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/using-react-redux/static-types.md renamed to website/versioned_docs/version-7.1/using-react-redux/static-types.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
id: static-typing
2+
id: version-7.1-static-typing
3+
original_id: static-typing
34
title: Static Typing
45
hide_title: true
56
sidebar_label: Static Typing
@@ -87,7 +88,7 @@ const dispatch: AppDispatch = useDispatch()
8788

8889
The `connect` higher-order component is somewhat complex to type, because there are 3 sources of props: `mapStateToProps`, `mapDispatchToProps`, and props passed in from the parent component. Here's a full example of what it looks like to do that manually.
8990

90-
```ts
91+
```tsx
9192
import { connect } from 'react-redux'
9293

9394
interface StateProps {

website/versioned_sidebars/version-7.1-sidebars.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"Using React Redux": [
99
"version-7.1-using-react-redux/connect-mapstate",
1010
"version-7.1-using-react-redux/connect-mapdispatch",
11-
"version-7.1-using-react-redux/accessing-store"
11+
"version-7.1-using-react-redux/accessing-store",
12+
"version-7.1-using-react-redux/static-typing"
1213
],
1314
"API Reference": [
1415
"version-7.1-api/connect",
@@ -17,8 +18,6 @@
1718
"version-7.1-api/batch",
1819
"version-7.1-api/hooks"
1920
],
20-
"Guides": [
21-
"version-7.1-troubleshooting"
22-
]
21+
"Guides": ["version-7.1-troubleshooting"]
2322
}
2423
}

0 commit comments

Comments
 (0)