diff --git a/ts/features/design-system/core/DSLegacyButtons.tsx b/ts/features/design-system/core/DSLegacyButtons.tsx deleted file mode 100644 index 73639425717..00000000000 --- a/ts/features/design-system/core/DSLegacyButtons.tsx +++ /dev/null @@ -1,112 +0,0 @@ -import { - BlockButtons, - H4, - VStack, - useIOTheme -} from "@pagopa/io-app-design-system"; -import * as React from "react"; -import { Alert } from "react-native"; -import { DesignSystemScreen } from "../components/DesignSystemScreen"; - -const onButtonPress = () => { - Alert.alert("Alert", "Action triggered"); -}; - -const componentInnerMargin = 16; -const sectionTitleMargin = 16; -const blockMargin = 40; - -export const DSLegacyButtons = () => { - const theme = useIOTheme(); - - return ( - - - -

Block Buttons

- {renderBlockButtons()} -
-
-
- ); -}; - -const renderBlockButtons = () => ( - - - - - - -); diff --git a/ts/features/design-system/navigation/navigator.tsx b/ts/features/design-system/navigation/navigator.tsx index 375b1d10d99..9e0a78cb878 100644 --- a/ts/features/design-system/navigation/navigator.tsx +++ b/ts/features/design-system/navigation/navigator.tsx @@ -52,7 +52,6 @@ import { DSIcons } from "../core/DSIcons"; import { DSIridescentTrustmark } from "../core/DSIridescentTrustmark"; import { DSLayout } from "../core/DSLayout"; import { DSLegacyAdvice } from "../core/DSLegacyAdvice"; -import { DSLegacyButtons } from "../core/DSLegacyButtons"; import { DSLegacyListItems } from "../core/DSLegacyListItems"; import { DSLegacyTextFields } from "../core/DSLegacyTextFields"; import { DSListItems } from "../core/DSListItems"; @@ -584,14 +583,6 @@ export const DesignSystemNavigator = () => { {/* LEGACY */} - - { dismiss(); }; - const cancelButtonProps: ButtonSolidProps = { - testID: "FciStopAbortingSignatureTestID", - onPress: () => dismiss(), - label: I18n.t("features.fci.abort.confirm"), - accessibilityLabel: I18n.t("features.fci.abort.confirm") - }; - const continueButtonProps: ButtonSolidProps = { - onPress: () => abortSignatureFlow(), - color: "danger", - label: I18n.t("features.fci.abort.cancel"), - accessibilityLabel: I18n.t("features.fci.abort.cancel") - }; - const { present: presentBs, bottomSheet, @@ -61,13 +46,19 @@ export const useFciAbortSignatureFlow = () => { ), snapPoint: [280], footer: ( - - - + dismiss(), + testID: "FciStopAbortingSignatureTestID" + }} + endAction={{ + color: "danger", + label: I18n.t("features.fci.abort.cancel"), + onPress: () => abortSignatureFlow() + }} + /> ) });