diff --git a/src/components/Lists/Proximo/ProximoListItem.tsx b/src/components/Lists/Proximo/ProximoListItem.tsx index 5d6ec49..c9a9010 100644 --- a/src/components/Lists/Proximo/ProximoListItem.tsx +++ b/src/components/Lists/Proximo/ProximoListItem.tsx @@ -44,8 +44,6 @@ const styles = StyleSheet.create({ }); function ProximoListItem(props: PropsType) { - // console.log(Urls.proximo.images + props.item.image); - return ( - + {item.description} @@ -330,9 +333,6 @@ function ProximoListScreen(props: Props) { data: ArticlesType | undefined ): SectionListDataType => { if (data) { - console.log(data); - console.log(props.route.params.category); - return [ { title: '', diff --git a/src/screens/Services/Proximo/ProximoMainScreen.tsx b/src/screens/Services/Proximo/ProximoMainScreen.tsx index 088f069..b5aaca9 100644 --- a/src/screens/Services/Proximo/ProximoMainScreen.tsx +++ b/src/screens/Services/Proximo/ProximoMainScreen.tsx @@ -19,18 +19,19 @@ import * as React from 'react'; import i18n from 'i18n-js'; -import { Avatar, List, useTheme, withTheme } from 'react-native-paper'; +import { List, useTheme, withTheme } from 'react-native-paper'; import WebSectionList from '../../../components/Screens/WebSectionList'; import MaterialHeaderButtons, { Item, } from '../../../components/Overrides/CustomHeaderButton'; import type { SectionListDataType } from '../../../components/Screens/WebSectionList'; -import { StyleSheet } from 'react-native'; +import { Image, StyleSheet } from 'react-native'; import Urls from '../../../constants/Urls'; import { readData } from '../../../utils/WebData'; import { useNavigation } from '@react-navigation/core'; import { useLayoutEffect } from 'react'; import { useCachedProximoCategories } from '../../../utils/cacheContext'; +import GENERAL_STYLES from '../../../constants/Styles'; const LIST_ITEM_HEIGHT = 84; @@ -63,6 +64,12 @@ const styles = StyleSheet.create({ item: { justifyContent: 'center', }, + avatar: { + marginLeft: 5, + ...GENERAL_STYLES.centerVertical, + height: 35, + width: 35, + }, }); function sortCategories( @@ -172,7 +179,10 @@ function ProximoMainScreen() { onPress={onPress} left={(props) => item.icon.endsWith('.png') ? ( - + ) : (