Added Icons and buttons to module view

This commit is contained in:
bobbert committed 2025-12-03 21:26:20 +00:00
1 parent 31c2208c2e
commit 8164fab184
7 files changed
+111 -37

No files matched your search

+14 -2
View File
@@ -1,5 +1,7 @@
import {StyleSheet, Text, View } from "react-native";
import {StyleSheet, Text, View} from "react-native";
import FullWidthImage from "react-native-fullwidth-image";
import {Button, ButtonTray} from "../../UI/Button";
import Icons from "../../UI/Icons.js"
const ModuleView = ({module}) => {
// Initialisation -------------
@@ -16,8 +18,18 @@ const ModuleView = ({module}) => {
<Text style={styles.Text}>
{module.ModuleLeaderName} <Text style={styles.dimText}>(Module Leader)</Text>
</Text>
</View>
<ButtonTray>
<Button icon={<Icons.Edit/>} label={"Modify"}/>
<Button
icon={<Icons.Delete/>}
label={"Delete"}
styleButton={{backgroundColor: 'mistyrose'}}
styleLabel={{color: 'red'}}
/>
</ButtonTray>
</View>);
};