From e900dd937b98e8636ef2bf37b55a2e7f04844112 Mon Sep 17 00:00:00 2001 From: Korbinian Date: Fri, 29 Sep 2023 23:14:11 +0200 Subject: [PATCH] chore(bridge-ui-v2): pre-select destination chain (#14850) Co-authored-by: David --- .../src/components/Bridge/Bridge.svelte | 2 +- .../ChainSelectorWrapper.svelte | 25 ++++++++++++++++++- .../src/components/ChainSelector/index.ts | 1 + .../bridge-ui-v2/src/libs/chain/chains.ts | 8 ++++++ 4 files changed, 34 insertions(+), 2 deletions(-) rename packages/bridge-ui-v2/src/components/{Bridge => ChainSelector}/ChainSelectorWrapper.svelte (60%) diff --git a/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte b/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte index 1f93d2a0d7b..4d240bce9d2 100644 --- a/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte +++ b/packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte @@ -8,9 +8,9 @@ import { routingContractsMap } from '$bridgeConfig'; import { chainConfig } from '$chainConfig'; import { FlatAlert } from '$components/Alert'; - import ChainSelectorWrapper from '$components/Bridge/ChainSelectorWrapper.svelte'; import { Button } from '$components/Button'; import { Card } from '$components/Card'; + import { ChainSelectorWrapper } from '$components/ChainSelector'; import { successToast, warningToast } from '$components/NotificationToast'; import { errorToast, infoToast } from '$components/NotificationToast/NotificationToast.svelte'; import { OnAccount } from '$components/OnAccount'; diff --git a/packages/bridge-ui-v2/src/components/Bridge/ChainSelectorWrapper.svelte b/packages/bridge-ui-v2/src/components/ChainSelector/ChainSelectorWrapper.svelte similarity index 60% rename from packages/bridge-ui-v2/src/components/Bridge/ChainSelectorWrapper.svelte rename to packages/bridge-ui-v2/src/components/ChainSelector/ChainSelectorWrapper.svelte index 3224e8c07e5..4f851492f0b 100644 --- a/packages/bridge-ui-v2/src/components/Bridge/ChainSelectorWrapper.svelte +++ b/packages/bridge-ui-v2/src/components/ChainSelector/ChainSelectorWrapper.svelte @@ -1,12 +1,13 @@