mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-09-11 11:47:00 +03:00
fix(core): typecheck after jotai upgraded (#5779)
This commit is contained in:
parent
45b5800a23
commit
8f4b4e20ab
@ -35,7 +35,6 @@ export const List = forwardRef<ItemListHandle, ListProps<ListItem>>(
|
||||
return (
|
||||
// push pageListProps to the atom so that downstream components can consume it
|
||||
// this makes sure pageListPropsAtom is always populated
|
||||
// @ts-expect-error fix type issues later
|
||||
<ListProvider initialValues={[[listPropsAtom, props]]}>
|
||||
<ListInnerWrapper {...props} handleRef={ref}>
|
||||
<ListInner {...props} />
|
||||
|
@ -77,7 +77,6 @@ export const VirtualizedList = forwardRef<
|
||||
return (
|
||||
// push pageListProps to the atom so that downstream components can consume it
|
||||
// this makes sure pageListPropsAtom is always populated
|
||||
// @ts-expect-error fix type issues later
|
||||
<ListProvider initialValues={[[listPropsAtom, props]]}>
|
||||
<ListInnerWrapper {...props} handleRef={ref}>
|
||||
<ListInner {...props} />
|
||||
|
Loading…
Reference in New Issue
Block a user