Skip to content

Commit

Permalink
chore: quick fix for account selector (#4756)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellohublot authored Jun 13, 2024
1 parent 1976a09 commit ab022da
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/components/src/layouts/SectionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function BaseSectionList<T>(
SectionSeparatorComponent = <Stack h="$5" />,
stickySectionHeadersEnabled = false,
keyExtractor,
initialScrollIndex,
...restProps
}: ISectionListProps<T>,
parentRef: ForwardedRef<IListViewRef<T>>,
Expand Down Expand Up @@ -209,16 +208,6 @@ function BaseSectionList<T>(
},
[keyExtractor],
);
const reloadInitialScrollIndex = useMemo(
() =>
reloadSections.findIndex((item, index) =>
item.type === ESectionLayoutType.Header &&
item.sectionIndex === initialScrollIndex
? reloadSectionHeaderIndex(index)
: null,
),
[initialScrollIndex, reloadSections, reloadSectionHeaderIndex],
);
return (
<ListView
ref={ref}
Expand All @@ -228,7 +217,6 @@ function BaseSectionList<T>(
stickyHeaderIndices={reloadStickyHeaderIndices}
getItemType={getItemType}
keyExtractor={reloadKeyExtractor}
initialScrollIndex={reloadInitialScrollIndex}
{...restProps}
/>
);
Expand Down

0 comments on commit ab022da

Please sign in to comment.