missed some code when refactoring user modify, removed stylesheet as well as there is no need for it as the styling is done in the components themselves.

This commit is contained in:
bobbert committed 2025-12-07 17:56:35 +00:00
1 parent 3b5285b553
commit f3b2c96d7a
1 file changed
+12 -15
+12 -15
View File
@@ -1,21 +1,20 @@
import {StyleSheet, Text} from "react-native";
import Screen from "../layout/Screen"; import Screen from "../layout/Screen";
import ModuleForm from "../entity/modules/moduleForm"; import UserForm from "../entity/users/UserForm";
export const UserModifyScreen = ({navigation, route}) => { const UserModifyScreen = ({ navigation, route }) => {
// Initialisation ------------- // Initialisation -------------
const {user, onModify} = route.params; const { user, onModify } = route.params;
// State ---------------------- // State ----------------------
// Handlers ------------------- // Handlers -------------------
const handleCancel = () => navigation.navigate.goBack(); const handleCancel = () => navigation.goBack();
// View ----------------------- // View -----------------------
return ( return (
<Screen style={styles.container}> <Screen>
<ModuleForm <UserForm
originalModule={user} originalUser={user}
onSubmit={onModify} onSubmit={onModify}
onCancel={handleCancel} onCancel={handleCancel}
/> />
@@ -23,6 +22,4 @@ export const UserModifyScreen = ({navigation, route}) => {
); );
}; };
const styles = StyleSheet.create({}); export default UserModifyScreen;
export default UserModifyScreen;