Commit 54ec552
Port main-menu JS files to TypeScript
- Port all 4 files in src/app/layouts/default/header/menus/main-menu to .tsx
- Add type annotations following guidelines: avoid any, prefer type over interface
- Use inline type definitions for function parameters
- Rely on type inference where possible
- Keep line lengths under 120 characters
Related to CORE-1266
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fix lint issues
Fix window.SETTINGS type assertion
Use double type assertion via unknown to properly convert Window type.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fix TypeScript type issues in main-menu files
- Make children props optional to handle JSX children
- Add type assertion for window.SETTINGS
- Add explicit types for filter/map callbacks
- Use index as fallback key in map operations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 0c1ce24 commit 54ec552
File tree
2 files changed
+5
-2
lines changed2 files changed
+5
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
0 commit comments