Skip to content

Commit

Permalink
remove toggle (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
nazli-stripe authored Mar 20, 2024
1 parent ff71b70 commit 0ff34ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
9 changes: 0 additions & 9 deletions src/__tests__/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ Object {
},
"StripeTerminalProvider": [Function],
"StripeTerminalProviderProps": undefined,
"ToggleResult": Object {
"DISABLED": "DISABLED",
"ENABLED": "ENABLED",
"SKIPPED": "SKIPPED",
},
"ToggleValue": Object {
"DISABLED": "DISABLED",
"ENABLED": "ENABLED",
},
"UPDATE_DISCOVERED_READERS": "UPDATE_DISCOVERED_READERS",
"UseStripeTerminalProps": undefined,
"WithStripeTerminalProps": undefined,
Expand Down
19 changes: 0 additions & 19 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ export type Input = {
skipButtonText?: string;
submitButtonText?: string;
title: string;
toggles?: Toggle[];
selectionButtons?: SelectionButton[];
};

Expand All @@ -417,26 +416,8 @@ export type CollectInputResult = {
selection?: string;
signatureSvg?: string;
text?: string;
toggles?: ToggleResult[];
};

export type Toggle = {
title: string;
description: string;
defaultValue: ToggleValue;
};

export enum ToggleValue {
ENABLED = 'ENABLED',
DISABLED = 'DISABLED',
}

export enum ToggleResult {
ENABLED = 'ENABLED',
DISABLED = 'DISABLED',
SKIPPED = 'SKIPPED',
}

export type SelectionButton = {
style: SelectionButtonStyle;
text: string;
Expand Down

0 comments on commit 0ff34ac

Please sign in to comment.