- The fix is in! Linty fresh and pretty...
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Text, View } from 'react-native';
|
||||
|
||||
import EditProfile from '../components/Profile/EditProfile.container.js';
|
||||
@@ -6,6 +7,7 @@ import EditProfile from '../components/Profile/EditProfile.container.js';
|
||||
import styles from './Register.styles.js';
|
||||
|
||||
export default function Register({ doRegistration, navigation }) {
|
||||
const title = 'Register';
|
||||
|
||||
const _doRegistration = (profile) => {
|
||||
if (!profile) {
|
||||
@@ -16,14 +18,14 @@ export default function Register({ doRegistration, navigation }) {
|
||||
};
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.heading}>Register</Text>
|
||||
<EditProfile
|
||||
cancelEditProfile={() => navigation.goBack()}
|
||||
saveProfileAction={doRegistration}
|
||||
saveProfileLabel="Register"
|
||||
/>
|
||||
</View>
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.heading}>{title}</Text>
|
||||
<EditProfile
|
||||
cancelEditProfile={() => navigation.goBack()}
|
||||
saveProfileAction={_doRegistration}
|
||||
saveProfileLabel="Register"
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user