Skip to content

Commit 534cd44

Browse files
committed
feat!: remove leap elements
1 parent f9a0f46 commit 534cd44

File tree

7 files changed

+81
-2053
lines changed

7 files changed

+81
-2053
lines changed

packages/react-components/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"@cosmos-kit/core": "2.8.9",
3131
"@cosmos-kit/react": "2.10.10",
3232
"@interchain-ui/react": "1.21.18",
33-
"@leapwallet/elements": "0.12.1",
3433
"chain-registry": "1.28.0",
3534
"react": "18.2.0",
3635
"react-dom": "18.2.0"

packages/react-components/src/lib/components/OnboardTokenModal.tsx

Lines changed: 0 additions & 83 deletions
This file was deleted.

packages/react-components/src/lib/components/ProvisionNoticeModal.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { BasicModal, Button, Text } from '@interchain-ui/react';
22
import { useAgoric } from '../hooks';
33
import { stringifyValue } from '@agoric/web-components';
44
import { AssetKind } from '@agoric/ertp';
5-
import { OnboardTokenModal } from './OnboardTokenModal';
65

76
const feeDecimals = 6;
87

@@ -32,11 +31,13 @@ export type Props = {
3231
onClose: () => void;
3332
proceed?: () => void;
3433
mainContent?: (fee?: bigint, feeUnit?: string) => JSX.Element;
34+
renderOnboardTokenTrigger?: () => JSX.Element;
3535
};
3636

3737
export const ProvisionNoticeModal = ({
3838
onClose,
3939
proceed,
40+
renderOnboardTokenTrigger,
4041
mainContent = defaultContent,
4142
}: Props) => {
4243
const { smartWalletProvisionFee, smartWalletProvisionFeeUnit, purses } =
@@ -98,12 +99,8 @@ export const ProvisionNoticeModal = ({
9899
>
99100
<div className="my-4">
100101
{mainContent(smartWalletProvisionFee, smartWalletProvisionFeeUnit)}
101-
<div className="my-4 flex justify-center gap-4">
102-
{renderBalance()}
103-
<OnboardTokenModal
104-
token={smartWalletProvisionFeeUnit === 'ubld' ? 'BLD' : 'IST'}
105-
/>
106-
</div>
102+
<div className="my-4 flex justify-center gap-4">{renderBalance()}</div>
103+
{renderOnboardTokenTrigger?.()}
107104
</div>
108105
<div className="flex justify-end gap-2 mt-6">
109106
<Button intent="secondary" onClick={onClose}>

packages/react-components/src/lib/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ export * from './ConnectWalletButton';
22
export * from './NodeSelectorModal';
33
export * from './AmountInput';
44
export * from './NetworkDropdown';
5-
export * from './OnboardTokenModal';
65
export * from './NoticeBanner';
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export * from './leapElementsClient';
21
export * from './networkConfig';

packages/react-components/src/lib/utils/leapElementsClient.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)