Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/pages/settings/Preferences/LanguagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, {useMemo, useRef} from 'react';
import FullPageOfflineBlockingView from '@components/BlockingViews/FullPageOfflineBlockingView';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import ScreenWrapper from '@components/ScreenWrapper';
import SelectionList from '@components/SelectionListWithSections';
import RadioListItem from '@components/SelectionListWithSections/RadioListItem';
import type {ListItem} from '@components/SelectionListWithSections/types';
import SelectionList from '@components/SelectionList';
import RadioListItem from '@components/SelectionList/ListItem/RadioListItem';
import type {ListItem} from '@components/SelectionList/ListItem/types';
import useLocalize from '@hooks/useLocalize';
import Navigation from '@libs/Navigation/Navigation';
import {setLocale} from '@userActions/App';
Expand Down Expand Up @@ -49,11 +49,11 @@ function LanguagePage() {
/>
<FullPageOfflineBlockingView>
<SelectionList
sections={[{data: locales}]}
data={locales}
ListItem={RadioListItem}
onSelectRow={updateLanguage}
shouldSingleExecuteRowSelect
initiallyFocusedOptionKey={locales.find((locale) => locale.isSelected)?.keyForList}
initiallyFocusedItemKey={locales.find((locale) => locale.isSelected)?.keyForList}
/>
</FullPageOfflineBlockingView>
</ScreenWrapper>
Expand Down
Loading