Updated names to all use employee
This commit is contained in:
@@ -22,7 +22,7 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
dispatch(signInEmployeeStart({ employeeId, pin })),
|
dispatch(signInEmployeeStart({ employeeId, pin })),
|
||||||
});
|
});
|
||||||
|
|
||||||
export function TechSignIn({ signInEmployeeStart, employeeSigningIn }) {
|
export function EmployeeSignIn({ signInEmployeeStart, employeeSigningIn }) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
//TODO add call to dispatch action
|
//TODO add call to dispatch action
|
||||||
@@ -41,7 +41,7 @@ export function TechSignIn({ signInEmployeeStart, employeeSigningIn }) {
|
|||||||
{({ handleChange, handleBlur, handleSubmit, values }) => (
|
{({ handleChange, handleBlur, handleSubmit, values }) => (
|
||||||
<View>
|
<View>
|
||||||
<TextInput
|
<TextInput
|
||||||
label={t("techsignin.fields.employeeid")}
|
label={t("employeesignin.fields.employeeid")}
|
||||||
mode="outlined"
|
mode="outlined"
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
keyboardType="default"
|
keyboardType="default"
|
||||||
@@ -51,7 +51,7 @@ export function TechSignIn({ signInEmployeeStart, employeeSigningIn }) {
|
|||||||
style={[localStyles.input]}
|
style={[localStyles.input]}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
label={t("techsignin.fields.pin")}
|
label={t("employeesignin.fields.pin")}
|
||||||
mode="outlined"
|
mode="outlined"
|
||||||
secureTextEntry={true}
|
secureTextEntry={true}
|
||||||
onChangeText={handleChange("pin")}
|
onChangeText={handleChange("pin")}
|
||||||
@@ -64,7 +64,7 @@ export function TechSignIn({ signInEmployeeStart, employeeSigningIn }) {
|
|||||||
loading={employeeSigningIn}
|
loading={employeeSigningIn}
|
||||||
onPress={handleSubmit}
|
onPress={handleSubmit}
|
||||||
>
|
>
|
||||||
<Text>{t("techsignin.actions.techsignin")}</Text>
|
<Text>{t("employeesignin.actions.employeesignin")}</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
@@ -87,4 +87,4 @@ const localStyles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps, mapDispatchToProps)(TechSignIn);
|
export default connect(mapStateToProps, mapDispatchToProps)(EmployeeSignIn);
|
||||||
@@ -25,8 +25,9 @@ import ScreenMediaBrowser from "../screen-media-browser/screen-media-browser.com
|
|||||||
import ScreenSettingsComponent from "../screen-settings/screen-settings.component";
|
import ScreenSettingsComponent from "../screen-settings/screen-settings.component";
|
||||||
import ScreenSignIn from "../screen-sign-in/screen-sign-in.component";
|
import ScreenSignIn from "../screen-sign-in/screen-sign-in.component";
|
||||||
import ScreenSplash from "../screen-splash/screen-splash.component";
|
import ScreenSplash from "../screen-splash/screen-splash.component";
|
||||||
|
|
||||||
//TODO Inprogress JF add import for screens for time ticket browser here
|
//TODO Inprogress JF add import for screens for time ticket browser here
|
||||||
import TechSignIn from "../screen-tech-sign-in/screen-tech-sign-in.component";
|
import EmployeeSignIn from "../screen-employee-sign-in/screen-employee-sign-in.component";
|
||||||
|
|
||||||
const ActiveJobStack = createNativeStackNavigator();
|
const ActiveJobStack = createNativeStackNavigator();
|
||||||
const MoreStack = createNativeStackNavigator();
|
const MoreStack = createNativeStackNavigator();
|
||||||
@@ -113,11 +114,11 @@ const MoreStackNavigator = () => (
|
|||||||
const TimeTicketBrowserStackNavigator = () => (
|
const TimeTicketBrowserStackNavigator = () => (
|
||||||
<TimeTicketBrowserStack.Navigator initialRouteName="TimeTicketBrowser">
|
<TimeTicketBrowserStack.Navigator initialRouteName="TimeTicketBrowser">
|
||||||
<TimeTicketBrowserStack.Screen
|
<TimeTicketBrowserStack.Screen
|
||||||
name="TechSignIn"
|
name="EmployeeSignIn"
|
||||||
options={() => ({
|
options={() => ({
|
||||||
title: i18n.t("techsignin.titles.signin"),
|
title: i18n.t("employeesignin.titles.signin"),
|
||||||
})}
|
})}
|
||||||
component={TechSignIn}
|
component={EmployeeSignIn}
|
||||||
/>
|
/>
|
||||||
{/* <TimeTicketBrowserStack.Screen
|
{/* <TimeTicketBrowserStack.Screen
|
||||||
name="TimeTicketBrowser"
|
name="TimeTicketBrowser"
|
||||||
|
|||||||
@@ -306,9 +306,9 @@
|
|||||||
"password": "Password"
|
"password": "Password"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"techsignin": {
|
"employeesignin": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"techsignin": "Sign In"
|
"employeesignin": "Sign In"
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
"employeeidnotfound": "No employee ID found.",
|
"employeeidnotfound": "No employee ID found.",
|
||||||
|
|||||||
@@ -306,9 +306,9 @@
|
|||||||
"password": ""
|
"password": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"techsignin": {
|
"employeesignin": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"techsignin": ""
|
"employeesignin": ""
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
"employeeidnotfound": "",
|
"employeeidnotfound": "",
|
||||||
|
|||||||
@@ -306,9 +306,9 @@
|
|||||||
"password": ""
|
"password": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"techsignin": {
|
"employeesignin": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"techsignin": ""
|
"employeesignin": ""
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
"employeeidnotfound": "",
|
"employeeidnotfound": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user