Skip to content

Commit

Permalink
chore: cleanup unused drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuditi committed Feb 15, 2024
1 parent b7a2e19 commit eedb496
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 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()
}
}
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 eedb496

Please sign in to comment.