refactor src folder structure
This commit is contained in:
parent
0bfb70af8b
commit
d0e26e2882
30 changed files with 94 additions and 134 deletions
|
@ -13,18 +13,18 @@ import { useTranslation } from 'react-i18next';
|
|||
import { BottomSheet, BottomSheetRefType } from 'react-native-select-bottom-list';
|
||||
|
||||
|
||||
import { ThemedText } from '@/lib/components/ThemedText';
|
||||
import { ThemedView } from '@/lib/components/ThemedView';
|
||||
import { Colors } from '@/lib/constants/Colors';
|
||||
import { useColorScheme } from '@/lib/hooks/useColorScheme';
|
||||
import { useToken } from '@/lib/context/AppProvider';
|
||||
import { Message } from '@/lib/services/message';
|
||||
import { Request } from '@/lib/services/request';
|
||||
import CustomModal from '@/lib/components/EditModal';
|
||||
import { store } from '@/lib/store/store';
|
||||
import { setSession, setReloadCalendar } from '@/lib/store/dataStore';
|
||||
import { ThemedIcon } from '@/lib/components/ThemedIcon';
|
||||
import List from '@/lib/components/List';
|
||||
import { ThemedText } from '@/src/components/themed/ThemedText';
|
||||
import { ThemedView } from '@/src/components/themed/ThemedView';
|
||||
import { Colors } from '@/src/constants/Colors';
|
||||
import { useColorScheme } from '@/src/hooks/useColorScheme';
|
||||
import { useToken } from '@/src/context/AppProvider';
|
||||
import { Message } from '@/src/services/message';
|
||||
import { Request } from '@/src/services/request';
|
||||
import CustomModal from '@/src/components/EditModal';
|
||||
import { store } from '@/src/store/store';
|
||||
import { setSession, setReloadCalendar } from '@/src/store/dataStore';
|
||||
import { ThemedIcon } from '@/src/components/themed/ThemedIcon';
|
||||
import List from '@/src/components/List';
|
||||
|
||||
export default function SettingsScreen() {
|
||||
const colorScheme = useColorScheme() ?? 'light';
|
||||
|
@ -266,20 +266,14 @@ export default function SettingsScreen() {
|
|||
]}
|
||||
viewStyle={styles.languagesList}
|
||||
renderItem={(item: any, index: any) => (
|
||||
<ThemedView>
|
||||
{item.key === language ?
|
||||
(
|
||||
<TouchableOpacity style={styles.languagesListItem} key={index} onPress={() => changeLanguage( item.key )}>
|
||||
<ThemedText type="defaultSemiBold">{item.name}</ThemedText>
|
||||
<ThemedIcon name="checkmark" size={18}/>
|
||||
</TouchableOpacity>
|
||||
) : (
|
||||
<TouchableOpacity style={styles.languagesListItem} key={index} onPress={() => changeLanguage( item.key )}>
|
||||
<ThemedText type="default">{item.name}</ThemedText>
|
||||
</TouchableOpacity>
|
||||
)
|
||||
|
||||
<TouchableOpacity style={styles.languagesListItem} key={index} onPress={() => changeLanguage( item.key )}>
|
||||
<ThemedText type={item.key === language ? 'defaultSemiBold' : 'default'}>{item.name}</ThemedText>
|
||||
|
||||
{item.key === language &&
|
||||
<ThemedIcon name="checkmark" size={18}/>
|
||||
}
|
||||
</ThemedView>
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
/>
|
||||
</ThemedView>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue