Skip to content

Commit

Permalink
chore: cleanup unused drawer (#1955)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Nardi <[email protected]>
  • Loading branch information
Tuditi and MarkNerdi authored Feb 19, 2024
1 parent c2f9cd1 commit 5ce5aff
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
ChainInformationDrawer,
ConfirmLedgerEvmAddressDrawer,
ConnectedChainsDrawer,
ConnectLedgerDeviceDrawer,
EditChainDrawer,
NetworkSettingsDrawer,
RemoveChainDrawer,
Expand Down Expand Up @@ -48,8 +47,6 @@
<RemoveChainDrawer {drawerRouter} />
{:else if $networkConfigRoute === NetworkConfigRoute.ChainDepositAddress}
<ChainDepositAddressDrawer {drawerRouter} />
{:else if $networkConfigRoute === NetworkConfigRoute.ConnectLedgerDevice}
<ConnectLedgerDeviceDrawer {drawerRouter} />
{:else if $networkConfigRoute === NetworkConfigRoute.ConfirmLedgerEvmAddress}
<ConfirmLedgerEvmAddressDrawer {drawerRouter} />
{:else if $networkConfigRoute === NetworkConfigRoute.AddChain}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export enum NetworkConfigRoute {
NetworkSettings = 'networkSettings',
ConfirmLedgerEvmAddress = 'confirmLedgerEvmAddress',
ConnectedChains = 'connectedChains',
ConnectLedgerDevice = 'connectLedgerDevice',
EditChain = 'editChain',
RemoveChain = 'removeChain',
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { get, writable } from 'svelte/store'
import { writable } from 'svelte/store'
import { Router } from '@core/router'
import { NetworkConfigRoute } from './network-config-route.enum'

Expand All @@ -9,11 +9,4 @@ export class NetworkConfigRouter extends Router<NetworkConfigRoute> {
constructor(initialRoute = NetworkConfigRoute.ConnectedChains) {
super(initialRoute, networkConfigRoute)
}

previous(): void {
if (get(this.routeStore) === NetworkConfigRoute.ConfirmLedgerEvmAddress) {
this.filterHistory(NetworkConfigRoute.ConnectLedgerDevice)
}
super.previous()
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export { default as ChainDepositAddressDrawer } from './ChainDepositAddressDrawe
export { default as ChainInformationDrawer } from './ChainInformationDrawer.svelte'
export { default as ConfirmLedgerEvmAddressDrawer } from './ConfirmLedgerEvmAddressDrawer.svelte'
export { default as ConnectedChainsDrawer } from './ConnectedChainsDrawer.svelte'
export { default as ConnectLedgerDeviceDrawer } from './ConnectLedgerDeviceDrawer.svelte'
export { default as EditChainDrawer } from './EditChainDrawer.svelte'
export { default as NetworkSettingsDrawer } from './NetworkSettingsDrawer.svelte'
export { default as RemoveChainDrawer } from './RemoveChainDrawer.svelte'

0 comments on commit 5ce5aff

Please sign in to comment.