From dc6db521c4c3c1c6293251ec2e2455e18ee1db67 Mon Sep 17 00:00:00 2001 From: Damiano Plebani Date: Tue, 22 Oct 2024 17:31:05 +0200 Subject: [PATCH] Fix some inconsistencies in the Profile related screens --- .../components/NotificationPreviewSample.tsx | 22 ++++++++++++++----- .../profile/DownloadProfileDataScreen.tsx | 5 ++--- ts/screens/profile/FiscalCodeScreen.tsx | 4 +--- .../ShareDataFeatureInfos.tsx | 18 +++++++-------- .../components/ShareDataComponent/index.tsx | 12 +++++----- .../services/ServicesContactComponent.tsx | 9 ++++---- 6 files changed, 37 insertions(+), 33 deletions(-) diff --git a/ts/features/pushNotifications/components/NotificationPreviewSample.tsx b/ts/features/pushNotifications/components/NotificationPreviewSample.tsx index 0b03744c636..3c65dceba75 100644 --- a/ts/features/pushNotifications/components/NotificationPreviewSample.tsx +++ b/ts/features/pushNotifications/components/NotificationPreviewSample.tsx @@ -5,7 +5,8 @@ import { IOSpacingScale, IOStyles, Icon, - LabelSmall + LabelSmall, + useIOTheme } from "@pagopa/io-app-design-system"; import React from "react"; import { StyleSheet, View } from "react-native"; @@ -20,10 +21,9 @@ const styles = StyleSheet.create({ notification: { flexDirection: "row", alignItems: "center", - backgroundColor: IOColors.white, borderWidth: 1, - borderColor: IOColors.bluegreyLight, - borderRadius: 8, + borderRadius: 16, + borderCurve: "continuous", minHeight: 90, marginVertical: notificationMarginVertical, paddingVertical: notificationPaddingVertical, @@ -72,9 +72,19 @@ export const NotificationPreviewSample = ({ remindersEnabled ); + const theme = useIOTheme(); + return ( - - + +
{I18n.t(titleKey)}
diff --git a/ts/screens/profile/DownloadProfileDataScreen.tsx b/ts/screens/profile/DownloadProfileDataScreen.tsx index f2aae4c4cc2..1d9760d1319 100644 --- a/ts/screens/profile/DownloadProfileDataScreen.tsx +++ b/ts/screens/profile/DownloadProfileDataScreen.tsx @@ -1,7 +1,6 @@ import { Body, ContentWrapper, - Label, VSpacer, useIOToast } from "@pagopa/io-app-design-system"; @@ -149,9 +148,9 @@ const DownloadProfileDataScreen = () => { {I18n.t("profile.main.privacy.exportData.detail.paragraph3.part1")} - + diff --git a/ts/screens/profile/FiscalCodeScreen.tsx b/ts/screens/profile/FiscalCodeScreen.tsx index 9ec14ae4b50..31f6e26f43e 100644 --- a/ts/screens/profile/FiscalCodeScreen.tsx +++ b/ts/screens/profile/FiscalCodeScreen.tsx @@ -98,9 +98,7 @@ const FiscalCodeScreen = () => { ]} testID="barcode-box" > - - {nameSurname} - + {nameSurname} void; @@ -69,7 +69,7 @@ const AnalyticsFeatureInfo = ({ trackAction }: FeatureProps) => { () => ( {I18n.t("profile.main.privacy.shareData.screen.why.description.one")} -