Commit 7e6ba04
Chris Hasson
refactor(ui): Simplify DecoratedVSCodeTextField props
Refactors `DecoratedVSCodeTextField` to extend `ComponentProps<typeof VSCodeTextField>`,
removing redundant prop definitions and simplifying its interface. This change
improves maintainability and ensures consistency with the underlying VSCode
text field component. Also adjusts `FormattedTextField` to correctly forward
refs with the updated prop types.1 parent 230a9e0 commit 7e6ba04
File tree
2 files changed
+5
-33
lines changed- webview-ui/src/components/common
2 files changed
+5
-33
lines changedLines changed: 3 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 10 | + | |
19 | 11 | | |
20 | 12 | | |
21 | | - | |
22 | 13 | | |
23 | 14 | | |
24 | 15 | | |
25 | 16 | | |
26 | 17 | | |
27 | 18 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 19 | + | |
42 | 20 | | |
43 | 21 | | |
44 | 22 | | |
| |||
92 | 70 | | |
93 | 71 | | |
94 | 72 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 73 | | |
101 | | - | |
102 | 74 | | |
103 | 75 | | |
104 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments