mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
Added Icons and buttons to module view
This commit is contained in:
1 parent
31c2208c2e
commit
8164fab184
7 files changed
+111
-37
No files matched your search
@@ -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>);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user