diff --git a/components/WorkoutCardComponent.tsx b/components/WorkoutCardComponent.tsx index 25cd418..4595255 100644 --- a/components/WorkoutCardComponent.tsx +++ b/components/WorkoutCardComponent.tsx @@ -1,68 +1,73 @@ -import {ImageBackground, Text, TouchableOpacity, View} from "react-native"; +import { Workout } from "@/model/Workout"; +import { AntDesign, MaterialCommunityIcons } from "@expo/vector-icons"; import React from "react"; -import {AntDesign, MaterialCommunityIcons} from "@expo/vector-icons"; -import {Workout} from "@/model/Workout"; +import { ImageBackground, Text, TouchableOpacity, View } from "react-native"; interface WorkoutCardComponentProps { - exercise: Workout, - background?: String, - height?: number, - + exercise: Workout; + background?: String; + height?: number; } -export default function WorkoutCardComponent({exercise, height, background}: WorkoutCardComponentProps) { - - - - const style = () => { - return `rounded-2xl overflow-hidden ${background ?? "bg-black"}` - } - - const styleImage = () => { - return `w-full h-full ` - } - - console.log(styleImage()) +export default function WorkoutCardComponent({ + exercise, + height, + background, +}: WorkoutCardComponentProps) { + const style = () => { + return `rounded-2xl overflow-hidden ${background ?? "bg-black"}`; + }; - console.log(style()) + const styleImage = () => { + return `w-full h-full `; + }; - return ( - + console.log(styleImage()); + console.log(style()); - - - - - {exercise.duration} min - - - - - - {exercise.calories} kcal - - - - - - {exercise.name} - {exercise.repetitions} - - - {exercise.level} - - - - - - - - + return ( + + + + + + + {exercise.duration} min + + + + + + + + {exercise.calories} kcal + + + + + + {exercise.name} + {exercise.repetitions} + + + {exercise.level} + + - ); -} \ No newline at end of file + + + + + + + ); +}