Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to dependencies, improvements to React component typing, and updates to the React rendering method. The most important changes include updating dependencies in
package.json
, migrating to React 18, and improving type safety for React components.Dependency Updates:
package.json
, including@storybook/react
to^8.4.2
,@types/chrome
to0.0.280
, andreact
andreact-dom
to18.3.1
. [1] [2]Migration to React 18:
src/popup.index.tsx
to usecreateRoot
fromreact-dom/client
instead ofReactDOM.render
.Type Safety Improvements:
direction: 1 | -1
insrc/popup/components/WeekDatePicker.tsx
.React.FC
type from several components to simplify typing and improve compatibility withReact.PropsWithChildren
. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Storybook Typing Fix:
src/shared/blocks/_stories/Panel.stories.tsx
by adding// @ts-expect-error
comment.Callback Type Refinement:
handleDateClick
callback insrc/shared/components/ActivityCalendar/index.tsx
to ensure it matches the expected type forReact.ComponentProps<'div'>['onClick']
.