add modification

pull/10/head
Rayhân HASSOU 1 year ago
parent f5c2806562
commit 57d46bbe36

@ -3,11 +3,10 @@ import {StyleSheet,Pressable, Text, View} from 'react-native';
interface CustomButtonProps { interface CustomButtonProps {
source : string
title : string title : string
} }
export default function CustomButton(props) { export default function CustomButton(props: CustomButtonProps) {
return ( return (
<Pressable style={styles.button}> <Pressable style={styles.button}>
<View style={styles.view}> <View style={styles.view}>

@ -2,14 +2,12 @@ import React from 'react';
import { Appbar } from 'react-native-paper'; import { Appbar } from 'react-native-paper';
interface TopBarProps{ interface TopBarProps{
source : string title : string
firstImage : string
lastImage : string
isVisible : boolean isVisible : boolean
} }
export default function TopBar(props : any) { export default function TopBar(props) {
const _goBack = () => console.log('Went back'); const _goBack = () => console.log('Went back');

@ -8,7 +8,7 @@ import FoodElementText from '../components/FoodElementText';
import CustomButton from '../components/CustomButton'; import CustomButton from '../components/CustomButton';
export default function IngredientSelection(props) { export default function IngredientSelection() {
const [searchQuery, setSearchQuery] = React.useState(''); const [searchQuery, setSearchQuery] = React.useState('');
@ -16,7 +16,7 @@ export default function IngredientSelection(props) {
return ( return (
<SafeAreaProvider> <SafeAreaProvider>
<TopBar title="Ingredient selection"/> <TopBar title="Ingredient selection" />
<View style={styles.page}> <View style={styles.page}>
<View style={styles.element}> <View style={styles.element}>

@ -8,7 +8,7 @@ import RecipeElementReduce from '../components/RecipeElementReduce';
export default function RecipeDetails(props) { export default function RecipeDetails(props) {
return ( return (
<SafeAreaProvider> <SafeAreaProvider>
<TopBar title="Recipe Detail" /> <TopBar title="Recipe Detail"/>
<View style={styles.page}> <View style={styles.page}>
<RecipeElementReduce <RecipeElementReduce
title={props.title} title={props.title}

Loading…
Cancel
Save