Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Aug 1, 2023
1 parent 830e7ea commit 4c3b95e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/react/VGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ export const VGrid = forwardRef<VGridHandle, VGridProps>(
Root: Viewport = DefaultViewport,
Cell: ItemElement = "div",
} = emptyComponents as {
Root?: CustomViewportComponent;
Cell?: CustomCellComponentOrElement;
Root?: undefined;
Cell?: undefined;
},
...viewportAttrs
},
Expand Down
4 changes: 2 additions & 2 deletions src/react/VList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ export const VList = forwardRef<VListHandle, VListProps>(
Root: Viewport = DefaultViewport,
Item: ItemElement = "div",
} = emptyComponents as {
Root?: CustomViewportComponent;
Item?: CustomItemComponentOrElement;
Root?: undefined;
Item?: undefined;
},
onScroll: onScrollProp,
onScrollStop: onScrollStopProp,
Expand Down
4 changes: 2 additions & 2 deletions src/react/WVList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export const WVList = forwardRef<WVListHandle, WVListProps>(
Root: Viewport = DefaultViewport,
Item: ItemElement = "div",
} = emptyComponents as {
Root?: CustomViewportComponent;
Item?: CustomItemComponentOrElement;
Root?: undefined;
Item?: undefined;
},
onScrollStop: onScrollStopProp,
onRangeChange: onRangeChangeProp,
Expand Down

0 comments on commit 4c3b95e

Please sign in to comment.