From 3978b7ce937f0a9194becc97bd8837e759e53a39 Mon Sep 17 00:00:00 2001 From: Jean Ribeiro Date: Tue, 29 Aug 2023 10:50:48 -0300 Subject: [PATCH] chore: removes unused KeyValueBox component (#525) --- .../src/components/boxes/KeyValueBox.svelte | 95 ------------------- packages/shared/src/components/boxes/index.js | 1 - .../src/lib/core/utils/interfaces/index.ts | 1 - .../key-value-box-list.interface.ts | 9 -- 4 files changed, 106 deletions(-) delete mode 100644 packages/shared/src/components/boxes/KeyValueBox.svelte delete mode 100644 packages/shared/src/lib/core/utils/interfaces/key-value-box-list.interface.ts diff --git a/packages/shared/src/components/boxes/KeyValueBox.svelte b/packages/shared/src/components/boxes/KeyValueBox.svelte deleted file mode 100644 index 314fbccced..0000000000 --- a/packages/shared/src/components/boxes/KeyValueBox.svelte +++ /dev/null @@ -1,95 +0,0 @@ - - -
- -
-
- {#if keyText} - - {keyText} - - {:else} - - {/if} - {#if tooltipText} - - {/if} -
- {#if valueText} -
- - {valueText} - -
- {:else} - - {/if} -
-
-
diff --git a/packages/shared/src/components/boxes/index.js b/packages/shared/src/components/boxes/index.js index d2a0aceeee..661b4d99e7 100644 --- a/packages/shared/src/components/boxes/index.js +++ b/packages/shared/src/components/boxes/index.js @@ -1,4 +1,3 @@ export { default as Box } from './Box.svelte' -export { default as KeyValueBox } from './KeyValueBox.svelte' export { default as AddressBox } from './AddressBox.svelte' export { default as CopyableBox } from './CopyableBox.svelte' diff --git a/packages/shared/src/lib/core/utils/interfaces/index.ts b/packages/shared/src/lib/core/utils/interfaces/index.ts index 1667af39d9..7e56c65794 100644 --- a/packages/shared/src/lib/core/utils/interfaces/index.ts +++ b/packages/shared/src/lib/core/utils/interfaces/index.ts @@ -1,5 +1,4 @@ export * from './date-difference.interface' export * from './dropdown-item.interface' export * from './format-iota-unit-options.interface' -export * from './key-value-box-list.interface' export * from './validation-options.interface' diff --git a/packages/shared/src/lib/core/utils/interfaces/key-value-box-list.interface.ts b/packages/shared/src/lib/core/utils/interfaces/key-value-box-list.interface.ts deleted file mode 100644 index 620e59337a..0000000000 --- a/packages/shared/src/lib/core/utils/interfaces/key-value-box-list.interface.ts +++ /dev/null @@ -1,9 +0,0 @@ -export interface IKeyValueBoxList { - [key: string]: { - data: string - isCopyable?: boolean - copyValue?: string - isTooltipVisible?: boolean - alternateKey?: string - } -}