-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Bonus Pagamenti Digitali): [#174847335,#174847371,#174847398] Ib…
…an ko screens (#2261) * add screens * add comments * Add navigation stack * add screen events layout * wip * wip * wip * rework ibaninsertion * clean code * file mssing * cleaning * reorder store * clean code * add comments * comments * add locales and validation iban * revert wallet * fix * [#174847335] add IbanKOWrong * create common body * . * cannot verify string * iban not owned * refactoring * fix basetypography test * Update ts/features/bonus/bpd/saga/orchestration/onboarding/enrollToBpd.ts Co-authored-by: Matteo Boschi <[email protected]> * Update ts/features/bonus/bpd/screens/iban/IbanLoadingUpsert.tsx Co-authored-by: Matteo Boschi <[email protected]> * update iban loading caption * wrong caption * Update ts/features/bonus/bpd/screens/iban/insertion/IbanInsertionComponent.tsx Co-authored-by: Matteo Boschi <[email protected]> * Update ts/features/bonus/bpd/screens/iban/insertion/IbanInsertionComponent.tsx Co-authored-by: Matteo Boschi <[email protected]> Co-authored-by: Matteo Boschi <[email protected]>
- Loading branch information
1 parent
13d2999
commit adf9337
Showing
15 changed files
with
297 additions
and
162 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
ts/features/bonus/bpd/screens/iban/ko/IbanKOCannotVerify.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import * as React from "react"; | ||
import { SafeAreaView } from "react-native"; | ||
import { connect } from "react-redux"; | ||
import { Dispatch } from "redux"; | ||
import image from "../../../../../../../img/search/search-icon.png"; | ||
import { IOStyles } from "../../../../../../components/core/variables/IOStyles"; | ||
import { renderInfoRasterImage } from "../../../../../../components/infoScreen/imageRendering"; | ||
import { InfoScreenComponent } from "../../../../../../components/infoScreen/InfoScreenComponent"; | ||
import BaseScreenComponent from "../../../../../../components/screens/BaseScreenComponent"; | ||
import I18n from "../../../../../../i18n"; | ||
import { GlobalState } from "../../../../../../store/reducers/types"; | ||
import { FooterTwoButtons } from "../../../../bonusVacanze/components/markdown/FooterTwoButtons"; | ||
import { | ||
bpdIbanInsertionContinue, | ||
bpdIbanInsertionResetScreen | ||
} from "../../../store/actions/iban"; | ||
import IbanKoBody from "./IbanKoBody"; | ||
|
||
export type Props = ReturnType<typeof mapDispatchToProps> & | ||
ReturnType<typeof mapStateToProps>; | ||
|
||
const loadLocales = () => ({ | ||
headerTitle: I18n.t("bonus.bpd.title"), | ||
edit: I18n.t("bonus.bpd.iban.edit"), | ||
continueStr: I18n.t("global.buttons.continue"), | ||
title: I18n.t("bonus.bpd.iban.koCannotVerify.title"), | ||
text1: I18n.t("bonus.bpd.iban.koCannotVerify.text1"), | ||
text2: I18n.t("bonus.bpd.iban.koCannotVerify.text2") | ||
}); | ||
|
||
/** | ||
* This screen warns the user that the provided iban cannot be verified. | ||
* This is just a warning, the user can continue and the iban has been registered on the bpd remote system. | ||
* @constructor | ||
*/ | ||
const IbanKoCannotVerify: React.FunctionComponent<Props> = props => { | ||
const { headerTitle, continueStr, edit, title, text1, text2 } = loadLocales(); | ||
return ( | ||
<BaseScreenComponent goBack={props.modifyIban} headerTitle={headerTitle}> | ||
<SafeAreaView style={IOStyles.flex}> | ||
<InfoScreenComponent | ||
image={renderInfoRasterImage(image)} | ||
title={title} | ||
body={<IbanKoBody text1={text1} text2={text2} />} | ||
/> | ||
<FooterTwoButtons | ||
type={"TwoButtonsInlineHalf"} | ||
onRight={props.completeInsertion} | ||
onCancel={props.modifyIban} | ||
rightText={continueStr} | ||
leftText={edit} | ||
/> | ||
</SafeAreaView> | ||
</BaseScreenComponent> | ||
); | ||
}; | ||
|
||
const mapDispatchToProps = (dispatch: Dispatch) => ({ | ||
modifyIban: () => dispatch(bpdIbanInsertionResetScreen()), | ||
completeInsertion: () => dispatch(bpdIbanInsertionContinue()) | ||
}); | ||
|
||
const mapStateToProps = (_: GlobalState) => ({}); | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(IbanKoCannotVerify); |
Oops, something went wrong.