mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-08 04:40:20 +00:00
Added modify screen routing
This commit is contained in:
1 parent
6cd703af33
commit
1f76cd8015
3 files changed
+32
-11
No files matched your search
@@ -3,7 +3,7 @@ import FullWidthImage from "react-native-fullwidth-image";
|
||||
import {Button, ButtonTray} from "../../UI/Button";
|
||||
import Icons from "../../UI/Icons.js"
|
||||
|
||||
const ModuleView = ({module, onDelete}) => {
|
||||
const ModuleView = ({module, onDelete, onModify}) => {
|
||||
// Initialisation -------------
|
||||
// State ----------------------
|
||||
// Handlers -------------------
|
||||
@@ -35,7 +35,11 @@ const ModuleView = ({module, onDelete}) => {
|
||||
</View>
|
||||
|
||||
<ButtonTray>
|
||||
<Button icon={<Icons.Edit/>} label={"Modify"}/>
|
||||
<Button
|
||||
icon={<Icons.Edit/>}
|
||||
label={"Modify"}
|
||||
onClick={onModify}
|
||||
/>
|
||||
<Button
|
||||
icon={<Icons.Delete/>}
|
||||
label={"Delete"}
|
||||
|
||||
Reference in new issue
Block a user