@@ -171,7 +171,7 @@ function BaseSelectionList<TItem extends ListItem>(
171
171
} , [ canSelectMultiple , sections ] ) ;
172
172
173
173
const [ slicedSections , ShowMoreButtonInstance ] = useMemo ( ( ) => {
174
- let remainingOptionsLimit = CONST . MAX_OPTIONS_SELECTOR_PAGE_LENGTH * currentPage ;
174
+ let remainingOptionsLimit = CONST . MAX_SELECTION_LIST_PAGE_LENGTH * currentPage ;
175
175
const processedSections = getSectionsWithIndexOffset (
176
176
sections . map ( ( section ) => {
177
177
const data = ! isEmpty ( section . data ) && remainingOptionsLimit > 0 ? section . data . slice ( 0 , remainingOptionsLimit ) : [ ] ;
@@ -184,11 +184,11 @@ function BaseSelectionList<TItem extends ListItem>(
184
184
} ) ,
185
185
) ;
186
186
187
- const shouldShowMoreButton = flattenedSections . allOptions . length > CONST . MAX_OPTIONS_SELECTOR_PAGE_LENGTH * currentPage ;
187
+ const shouldShowMoreButton = flattenedSections . allOptions . length > CONST . MAX_SELECTION_LIST_PAGE_LENGTH * currentPage ;
188
188
const showMoreButton = shouldShowMoreButton ? (
189
189
< ShowMoreButton
190
190
containerStyle = { [ styles . mt2 , styles . mb5 ] }
191
- currentCount = { CONST . MAX_OPTIONS_SELECTOR_PAGE_LENGTH * currentPage }
191
+ currentCount = { CONST . MAX_SELECTION_LIST_PAGE_LENGTH * currentPage }
192
192
totalCount = { flattenedSections . allOptions . length }
193
193
onPress = { incrementPage }
194
194
/>
@@ -229,7 +229,7 @@ function BaseSelectionList<TItem extends ListItem>(
229
229
// If `initiallyFocusedOptionKey` is not passed, we fall back to `-1`, to avoid showing the highlight on the first member
230
230
const [ focusedIndex , setFocusedIndex ] = useArrowKeyFocusManager ( {
231
231
initialFocusedIndex : flattenedSections . allOptions . findIndex ( ( option ) => option . keyForList === initiallyFocusedOptionKey ) ,
232
- maxIndex : Math . min ( flattenedSections . allOptions . length - 1 , CONST . MAX_OPTIONS_SELECTOR_PAGE_LENGTH * currentPage - 1 ) ,
232
+ maxIndex : Math . min ( flattenedSections . allOptions . length - 1 , CONST . MAX_SELECTION_LIST_PAGE_LENGTH * currentPage - 1 ) ,
233
233
disabledIndexes : flattenedSections . disabledOptionsIndexes ,
234
234
isActive : true ,
235
235
onFocusedIndexChange : ( index : number ) => {
0 commit comments