-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#172992652] Activate bonus screen #1853
Conversation
Affected stories
Generated by 🚫 dangerJS |
ts/features/bonusVacanze/screens/ActivateBonus/ActivateBonusScreen.tsx
Outdated
Show resolved
Hide resolved
ts/features/bonusVacanze/screens/ActivateBonus/ActivateBonusScreen.tsx
Outdated
Show resolved
Hide resolved
ts/features/bonusVacanze/screens/ActivateBonus/ActivateBonusComponent.tsx
Outdated
Show resolved
Hide resolved
… into 172992652-activate-bonus-screen
|
||
const mapStateToProps = (_: GlobalState) => ({ | ||
// TODO: link with the right reducer | ||
bonusVacanze: mockedBonus, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Undermaken Are we sure to use this data model here? In this phase we should have only the response from /eligibility
with the payload with values family_members
, max_amount
and max_tax_benefit
. Seems to me that the model BonusVacanzaMock
represents an already request bonus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabriziofff Yes, you are totally right.
I lost the point where we are.
At this point we should have something like this
{
"family_members": [
{
"name": "Mario",
"surname": "Rossi",
"fiscal_code": "EFCMZZ80A12L720R"
},
{
"name": "Giulia",
"surname": "Rossi",
"fiscal_code": "CDCMQQ81A12L721R"
},
{
"name": "Piero",
"surname": "Rossi",
"fiscal_code": "ABCMYY82A12L722R"
}
],
"max_amount": 50000,
"max_tax_benefit": 3000,
"id": "76d02f6d-ca02-4b1c-8b6a-4b8ca71d6293",
"status": "ELIGIBLE"
}
Please could you revert?
This pr depends on (#1846).
Short description:
This pr adds the screen that allow to see:
And allows to:
List of changes proposed in this pull request:
ts/features/bonusVacanze/screens/ActivateBonus/ActivateBonusComponent.tsx
a component that implements all the graphic required by the screen.ts/features/bonusVacanze/screens/ActivateBonus/ActivateBonusScreen.tsx
that uses theActivateBonusComponent
and tie it with the business logic.