mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
Fixed handleDelete to onDelete in ModuleListScreen.js
This commit is contained in:
1 parent
3ad1ef5c32
commit
1c4130b876
2 files changed
+2
-2
No files matched your search
@@ -3,7 +3,7 @@ import FullWidthImage from "react-native-fullwidth-image";
|
|||||||
import {Button, ButtonTray} from "../../UI/Button";
|
import {Button, ButtonTray} from "../../UI/Button";
|
||||||
import Icons from "../../UI/Icons.js"
|
import Icons from "../../UI/Icons.js"
|
||||||
|
|
||||||
const ModuleView = ({module, onDelete}) => {
|
const ModuleView = ({ module, onDelete }) => {
|
||||||
// Initialisation -------------
|
// Initialisation -------------
|
||||||
// State ----------------------
|
// State ----------------------
|
||||||
// Handlers -------------------
|
// Handlers -------------------
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const ModuleListScreen = ({navigation}) => {
|
|||||||
navigation.goBack();
|
navigation.goBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSelect = (module) => navigation.navigate('ModuleViewScreen', { module, handleDelete });
|
const handleSelect = (module) => navigation.navigate('ModuleViewScreen', { module, onDelete });
|
||||||
// View -----------------------
|
// View -----------------------
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in new issue
Block a user