diff --git a/components/report/CardItem.tsx b/components/report/CardItem.tsx index a4a49c0..646c3d8 100644 --- a/components/report/CardItem.tsx +++ b/components/report/CardItem.tsx @@ -1,52 +1,21 @@ -import Ionicons from '@expo/vector-icons/Ionicons'; -import { Pressable, Text, View } from 'react-native'; +import Ionicons from '@expo/vector-icons/Ionicons' +import { Pressable, Text, View } from 'react-native' type topic = { - id: number; - text: string; -}; + id: number, + text: string +} type Props = { - icon: any; - typeCard: 'positive' | 'negative' | 'recomendation'; - topics: topic[]; - handlePress: () => void; -}; + icon: any, + typeCard: 'positive' | 'negative' | 'recomendation', + topics: topic[] + handlePress: ()=> void +} -export const CardItem = ({ icon, typeCard, topics, handlePress }: Props) => { - return ( - - - - {typeCard === 'positive' && ( - <> - - Pontos positivos - - - - )} - {typeCard === 'negative' && ( - <> - - Pontos negativos - - - - )} - {typeCard === 'recomendation' && ( - <> - - Recomendações - - - - )} - - - {topics.map((item) => ( - { + return( + @@ -84,14 +53,5 @@ export const CardItem = ({ icon, typeCard, topics, handlePress }: Props) => { - ))} - - Ver Sugestões - - - - ); -}; + ) +} \ No newline at end of file