Browse Source

react-native: remove isActive from user form

pull/11387/head
mehmet-erim 5 years ago
parent
commit
cb6cc551f8
  1. 14
      templates/app/react-native/src/screens/CreateUpdateUser/CreateUpdateUserForm.js

14
templates/app/react-native/src/screens/CreateUpdateUser/CreateUpdateUserForm.js

@ -68,7 +68,6 @@ function CreateUpdateUserForm({ editingUser = {}, submit, remove }) {
password: passwordValidation, password: passwordValidation,
}), }),
initialValues: { initialValues: {
isActive: true,
lockoutEnabled: false, lockoutEnabled: false,
...editingUser, ...editingUser,
}, },
@ -230,19 +229,6 @@ function CreateUpdateUserForm({ editingUser = {}, submit, remove }) {
</FormControl> </FormControl>
) : null} ) : null}
<FormControl my="2">
<Stack mx="4">
<Checkbox
isChecked={formik.values.isActive}
onPress={() =>
formik.setFieldValue('isActive', !formik.values.isActive)
}
>
{i18n.t('AbpIdentity::DisplayName:IsActive')}
</Checkbox>
</Stack>
</FormControl>
<FormControl my="2"> <FormControl my="2">
<Stack mx="4"> <Stack mx="4">
<Checkbox <Checkbox

Loading…
Cancel
Save