diff --git a/src/components/entity/modules/ModuleView.js b/src/components/entity/modules/ModuleView.js index c055efb..f94abc4 100644 --- a/src/components/entity/modules/ModuleView.js +++ b/src/components/entity/modules/ModuleView.js @@ -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 }) => { // Initialisation ------------- // State ---------------------- // Handlers ------------------- diff --git a/src/components/screens/ModuleListScreen.js b/src/components/screens/ModuleListScreen.js index 9ba5747..575396f 100644 --- a/src/components/screens/ModuleListScreen.js +++ b/src/components/screens/ModuleListScreen.js @@ -24,7 +24,7 @@ const ModuleListScreen = ({navigation}) => { navigation.goBack(); } - const handleSelect = (module) => navigation.navigate('ModuleViewScreen', { module, handleDelete }); + const handleSelect = (module) => navigation.navigate('ModuleViewScreen', { module, onDelete }); // View ----------------------- return (