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