Commit 0b470c3
Migrate sidebar_header component to TypeScript (#617)
* Migrate sidebar_header component to TypeScript
- Convert sidebar_header.jsx to sidebar_header.tsx with proper TypeScript interfaces
- Migrate index.js to index.ts with GlobalState typing
- Add missing 'connected' prop that was added to master after original PR
- Use getConnected selector for better type safety
- Fix interface formatting (proper spacing and semicolons)
Addresses feedback from PR #450 and resolves issue #431.
* Fix Theme import path to match codebase convention
Use 'mattermost-redux/selectors/entities/preferences' instead of
'mattermost-redux/types/preferences' to be consistent with all other
TypeScript files in the codebase.
---------
Co-authored-by: Mattermost Build <build@mattermost.com>1 parent a1bac9f commit 0b470c3
File tree
2 files changed
+15
-13
lines changed- webapp/src/components/sidebar_header
2 files changed
+15
-13
lines changedLines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments