Skip to content
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

chore(IT Wallet): [SIW-1764] Add ipzs privacy policy link inside credential details bottomSheet #6301

Merged
merged 15 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions locales/en/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3333,10 +3333,10 @@ features:
bottomSheet:
about:
title: "Chi è?"
subtitle: "È l'ente riconosciuto dallo Stato a fornirti la versione digitale dei tuoi documenti."
subtitle: "È lente riconosciuto dallo Stato a fornirti la versione digitale dei tuoi documenti.\n\n Per sapere come tratta i tuoi dati consulta l’[Informativa Privacy]({{privacyUrl}}). "
authSource:
title: "Chi è?"
subtitle: "È l'ente che detiene i dati contenuti all'interno del tuo documento."
subtitle: "È lente che detiene i dati contenuti all'interno del tuo documento."
actions:
primary: Aggiungi al portafoglio
secondary: Annulla
Expand Down
4 changes: 2 additions & 2 deletions locales/it/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3333,10 +3333,10 @@ features:
bottomSheet:
about:
title: "Chi è?"
subtitle: "È l'ente riconosciuto dallo Stato a fornirti la versione digitale dei tuoi documenti."
subtitle: "È lente riconosciuto dallo Stato a fornirti la versione digitale dei tuoi documenti.\n\n Per sapere come tratta i tuoi dati consulta l’[Informativa Privacy]({{privacyUrl}}). "
authSource:
title: "Chi è?"
subtitle: "È l'ente che detiene i dati contenuti all'interno del tuo documento."
subtitle: "È lente che detiene i dati contenuti allinterno del tuo documento."
actions:
primary: Aggiungi al portafoglio
secondary: Annulla
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
trackWalletCredentialShowAuthSource,
trackWalletCredentialShowIssuer
} from "../../analytics";
import { itwIpzsPrivacyUrl } from "../../../../config";

type ItwIssuanceMetadataProps = {
credential: StoredCredential;
Expand Down Expand Up @@ -105,7 +106,10 @@ export const ItwIssuanceMetadata = ({
"features.itWallet.issuance.credentialPreview.bottomSheet.about.title"
),
contentBody: I18n.t(
"features.itWallet.issuance.credentialPreview.bottomSheet.about.subtitle"
"features.itWallet.issuance.credentialPreview.bottomSheet.about.subtitle",
{
privacyUrl: itwIpzsPrivacyUrl
}
),
onPress: () =>
trackWalletCredentialShowIssuer(
Expand Down
6 changes: 3 additions & 3 deletions ts/features/itwallet/common/hooks/useItwInfoBottomSheet.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from "react";
import { View } from "react-native";
import { Body, H6, IOStyles, VSpacer } from "@pagopa/io-app-design-system";
import { H6, IOStyles, VSpacer } from "@pagopa/io-app-design-system";
import { useIOBottomSheetAutoresizableModal } from "../../../../utils/hooks/bottomSheet";
import ItwMarkdown from "../components/ItwMarkdown";

/**
* The type of the content of the bottom sheet.
Expand Down Expand Up @@ -35,8 +36,7 @@ export const useItwInfoBottomSheet = ({ title, content }: ItwInfoFlowProps) => {
<VSpacer size={8} />
</>
)}
<Body>{item.body}</Body>
<VSpacer size={16} />
<ItwMarkdown>{item.body}</ItwMarkdown>
</View>
))}
<VSpacer size={24} />
Expand Down
Loading
Loading