diff --git a/components/ListItemComponent.tsx b/components/ListItemComponent.tsx index e087af4..97cbe13 100644 --- a/components/ListItemComponent.tsx +++ b/components/ListItemComponent.tsx @@ -3,7 +3,7 @@ import { Card } from "../models/Card"; import { setFavList } from "../redux/actions/action_setFavList"; import { ImageBackground, TouchableHighlight, View } from "react-native"; import React, { useEffect } from "react"; -import {CardProps} from "../props/favprops" +import {CardProps} from "../props/favProps" import { FontAwesome } from '@expo/vector-icons'; import { StyleSheet} from 'react-native'; @@ -15,8 +15,7 @@ export default function Item(props: CardProps){ // a mettre dans components et d const dispatch = useDispatch() const HandleAddFav = (props : CardProps) => { - console.log("add new card") - dispatch(setFavList(props)); + dispatch(setFavList(props)); } return( diff --git a/components/mainComponent.tsx b/components/mainComponent.tsx deleted file mode 100644 index c7e5640..0000000 --- a/components/mainComponent.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import { StatusBar } from 'expo-status-bar'; -import { StyleSheet, Text, View, Button } from 'react-native'; -import React, { useState } from "react"; - -// @ts-ignore -export default function Main(props : mainProps){ - const [count, setCount] = useState(0); - return ( - - - Maman, prend la caméra ! ! - - {count} -