-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: align default
tosVersion
to the remote one (#5978)
## Short Description This PR aligns the ToS version number with the [remote version](https://github.com/pagopa/io-services-metadata/blob/a5ece439327bbcbd03029c9f28f70ab3a17a1687/status/backend.json#L118). It also updates the app to use the remote `privacyURL` across all necessary screens and adds a lint rule to prevent using the default fallback value from `config.ts`. ## List of Changes Proposed in This Pull Request - Aligned the ToS version number to match the remote version. - Updated the app to use `privacyURL` from the `backend.json` status (remote) where needed. - Added a lint rule to avoid using the `privacyURL` link from `config.ts`. ## How to Test Run the app and verify the following: - The login flow works correctly. - The ToS screen in the profile section displays the correct remote ToS URL. - The ToS screen during the first onboarding shows the correct remote ToS URL. --------- Co-authored-by: Alice Di Rico <[email protected]>
- Loading branch information
1 parent
5a809df
commit f8b31c3
Showing
12 changed files
with
55 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import { NonNegativeNumber } from "@pagopa/ts-commons/lib/numbers"; | ||
import { IOPayPalPsp } from "../../types"; | ||
import { privacyUrl } from "../../../../../../config"; | ||
|
||
const mockPrivacyUrl = "https://io.italia.it/app-content/tos_privacy.html"; | ||
|
||
export const pspList: ReadonlyArray<IOPayPalPsp> = [ | ||
{ | ||
id: "1", | ||
logoUrl: "https://paytipper.com/wp-content/uploads/2021/02/logo.png", | ||
name: "PayTipper", | ||
fee: 100 as NonNegativeNumber, | ||
privacyUrl | ||
privacyUrl: mockPrivacyUrl | ||
}, | ||
{ | ||
id: "2", | ||
logoUrl: "https://www.dropbox.com/s/smk5cyxx1qevn6a/mat_bank.png?dl=1", | ||
name: "Mat Bank", | ||
fee: 50 as NonNegativeNumber, | ||
privacyUrl | ||
privacyUrl: mockPrivacyUrl | ||
} | ||
]; |
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 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