Fixed handleDelete to onDelete in ModuleListScreen.js

This commit is contained in:
bobbert committed 2025-12-04 13:12:20 +00:00
1 parent 3ad1ef5c32
commit 1c4130b876
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 -------------------
+1 -1
View File
@@ -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 (