Browse Source

[Sprint 8 fix] fix password recovery title

master
GabrielTrettel 2 years ago
parent
commit
2fb865e975
  1. 2
      src/app/navigation/AccountNavigator.js
  2. 2
      src/app/navigation/AuthNavigator.js
  3. 3
      src/app/screens/PasswordRecoveryScreen.js

2
src/app/navigation/AccountNavigator.js

@ -82,7 +82,7 @@ const AccountNavigator = () => (
<Stack.Screen <Stack.Screen
name="PasswordRecovery" name="PasswordRecovery"
component={PasswordRecovery} component={PasswordRecovery}
initialParams={{ user : {} }}
initialParams={{ user : {}, title: "Alterar senha" }}
options={{ headerTitle: "" }} options={{ headerTitle: "" }}
/> />

2
src/app/navigation/AuthNavigator.js

@ -30,7 +30,7 @@ const AuthNavigator = () => (
<Stack.Screen <Stack.Screen
name="PasswordRecovery" name="PasswordRecovery"
component={PasswordRecovery} component={PasswordRecovery}
initialParams={{ user : {} }}
initialParams={{ user : {}, title: "Recuperação de senha" }}
options={{ headerTitle: "" }} options={{ headerTitle: "" }}
/> />

3
src/app/screens/PasswordRecoveryScreen.js

@ -68,6 +68,7 @@ const validationSchema = Yup.object().shape({
export default function PasswordRecovery({ navigation, route }) { export default function PasswordRecovery({ navigation, route }) {
const user = route.params.user; const user = route.params.user;
const title = route.params.title;
const [showLoading, setShowLoading] = useState(false); const [showLoading, setShowLoading] = useState(false);
const [confirmatioModalData, setConfirmatioModalData] = useState({ const [confirmatioModalData, setConfirmatioModalData] = useState({
@ -150,7 +151,7 @@ export default function PasswordRecovery({ navigation, route }) {
}} }}
> >
<View style={{ padding: 16 }}> <View style={{ padding: 16 }}>
<Text style={styles.textHeader}>Recuperação de senha</Text>
<Text style={styles.textHeader}>{title}</Text>
<Text style={styles.textSubtitle}> <Text style={styles.textSubtitle}>
Responda à pergunta de segurança, isso ajuda a mostrar que essa Responda à pergunta de segurança, isso ajuda a mostrar que essa
conta realmente pertence a você conta realmente pertence a você

Loading…
Cancel
Save