mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
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:
1 parent
3b5285b553
commit
f3b2c96d7a
1 file changed
+6
-9
@@ -1,21 +1,20 @@
|
||||
import {StyleSheet, Text} from "react-native";
|
||||
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 -------------
|
||||
const { user, onModify } = route.params;
|
||||
|
||||
// State ----------------------
|
||||
// Handlers -------------------
|
||||
|
||||
const handleCancel = () => navigation.navigate.goBack();
|
||||
const handleCancel = () => navigation.goBack();
|
||||
|
||||
// View -----------------------
|
||||
return (
|
||||
<Screen style={styles.container}>
|
||||
<ModuleForm
|
||||
originalModule={user}
|
||||
<Screen>
|
||||
<UserForm
|
||||
originalUser={user}
|
||||
onSubmit={onModify}
|
||||
onCancel={handleCancel}
|
||||
/>
|
||||
@@ -23,6 +22,4 @@ export const UserModifyScreen = ({navigation, route}) => {
|
||||
);
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({});
|
||||
|
||||
export default UserModifyScreen;
|
||||
Reference in new issue
Block a user