Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cleanup unused drawer #1955

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading