Commit c09a3c6
committed
fix(web-demo): add PropsWithChildren to Layout for React 18
In @types/react@18, FunctionComponent no longer implicitly
includes children in props. Explicitly type Layout with
React.PropsWithChildren to restore the previous behavior.
TICKET: VL-51111 parent bf7a90e commit c09a3c6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments