({
mindHabit,
moneyHabit,
bodyHabit,
funHabit,
})
| 4 | import { ProgressBar } from "react-native-paper"; |
| 5 | |
| 6 | export default function StatusBar({ |
| 7 | mindHabit, |
| 8 | moneyHabit, |
| 9 | bodyHabit, |
| 10 | funHabit, |
| 11 | }) { |
| 12 | return ( |
| 13 | <View style={styles.container}> |
| 14 | <View style={styles.statusBarContainer}> |
| 15 | <Image |
| 16 | source={require("../../../assets/icons/educationIcon.png")} |
| 17 | style={styles.icon} |
| 18 | /> |
| 19 | <ProgressBar |
| 20 | progress={mindHabit} |
| 21 | color={"#90B7F3"} |
| 22 | style={styles.progress} |
| 23 | /> |
| 24 | </View> |
| 25 | <View style={styles.statusBarContainer}> |
| 26 | <Image |
| 27 | source={require("../../../assets/icons/moneyIcon.png")} |
| 28 | style={styles.icon} |
| 29 | /> |
| 30 | <ProgressBar |
| 31 | progress={moneyHabit} |
| 32 | color={"#85BB65"} |
| 33 | style={styles.progress} |
| 34 | /> |
| 35 | </View> |
| 36 | <View style={styles.statusBarContainer}> |
| 37 | <Image |
| 38 | source={require("../../../assets/icons/bodyIcon.png")} |
| 39 | style={styles.icon} |
| 40 | /> |
| 41 | <ProgressBar |
| 42 | progress={bodyHabit} |
| 43 | color={"#FF0043"} |
| 44 | style={styles.progress} |
| 45 | /> |
| 46 | </View> |
| 47 | <View style={styles.statusBarContainer}> |
| 48 | <Image |
| 49 | source={require("../../../assets/icons/funIcon.png")} |
| 50 | style={styles.icon} |
| 51 | /> |
| 52 | <ProgressBar |
| 53 | progress={funHabit} |
| 54 | color={"#FE7F23"} |
| 55 | style={styles.progress} |
| 56 | /> |
| 57 | </View> |
| 58 | </View> |
| 59 | ); |
| 60 | } |
| 61 | |
| 62 | const styles = StyleSheet.create({ |
| 63 | container: { |
nothing calls this directly
no outgoing calls
no test coverage detected