Commit acf7b6c
authored
🎇 Fix calendar.tsx typescript errors (#96)
We were passing `IconLeft` and `IconRight` to the `react-day-picker`
component, when those aren't actually options in the components prop.
Per https://daypicker.dev/api/type-aliases/CustomComponents, it looks
like what we should've used is PreviousMonthButton and NextMonthButton.
Confirmed in a prod codespace editing calendar.tsx directly that this
does render the correct icons.
This was the only tsc error that comes up when running `npx tsc` from
the built-in components, so resolving issues with generated code should
be easier without the noise
|before|after|
|---|---|
|||1 parent 3030858 commit acf7b6c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments