Skip to content

Commit

Permalink
Revert "feat: add ModuleNavigation component"
Browse files Browse the repository at this point in the history
This reverts commit 99d065e.
  • Loading branch information
mastro993 committed Apr 30, 2024
1 parent 99d065e commit 9476296
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 161 deletions.
44 changes: 0 additions & 44 deletions example/src/pages/Modules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ModuleCheckout,
ModuleCredential,
ModuleIDP,
ModuleNavigation,
ModulePaymentNotice,
useIOExperimentalDesign,
useIOTheme
Expand Down Expand Up @@ -257,41 +256,6 @@ const renderModuleCredential = () => (
</>
);

const renderModuleNavigation = () => (
<>
<ComponentViewerBox name="ModuleNavigation">
<View>
<ModuleNavigation
icon="spid"
title="SPID"
subtitle="Usa credenziali e app (o SMS)"
onPress={mockFn}
/>
</View>
</ComponentViewerBox>
<ComponentViewerBox name="ModuleNavigation, with Badge">
<View>
<ModuleNavigation
icon="spid"
title="SPID"
subtitle="Usa credenziali e app (o SMS)"
onPress={mockFn}
badge={{
text: "IN arrivo",
variant: "blue",
outline: true
}}
/>
</View>
</ComponentViewerBox>
<ComponentViewerBox name="ModuleNavigation, loading">
<View>
<ModuleNavigation isLoading={true} />
</View>
</ComponentViewerBox>
</>
);

const Modules = () => {
const { isExperimental, setExperimental } = useIOExperimentalDesign();
const theme = useIOTheme();
Expand Down Expand Up @@ -342,14 +306,6 @@ const Modules = () => {
ModuleCredential
</H2>
{renderModuleCredential()}
<H2
color={theme["textHeading-default"]}
weight={"SemiBold"}
style={{ marginBottom: 16, marginTop: 16 }}
>
ModuleNavigation
</H2>
{renderModuleNavigation()}
</Screen>
);
};
Expand Down
116 changes: 0 additions & 116 deletions src/components/modules/ModuleNavigation.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/modules/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ export * from "./ModuleAttachment";
export * from "./ModuleCheckout";
export * from "./ModuleCredential";
export * from "./ModuleIDP";
export * from "./ModuleNavigation";
export * from "./ModulePaymentNotice";
export * from "./PressableModuleBase";

0 comments on commit 9476296

Please sign in to comment.