-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix button && danger banner && refactor
- Loading branch information
1 parent
cc5aa59
commit 78e1205
Showing
29 changed files
with
275 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
packages/mobile/src/tabs/Wallet/content-providers/dependencies/inscriptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
import { DependencyPrototype } from './utils/prototype'; | ||
import { tk } from '$wallet'; | ||
|
||
import { TonInscriptionsState } from '$wallet/managers/TonInscriptions'; | ||
import { Wallet } from '$wallet/Wallet'; | ||
|
||
export class InscriptionsDependency extends DependencyPrototype< | ||
TonInscriptionsState, | ||
TonInscriptionsState['items'] | ||
> { | ||
constructor() { | ||
super(tk.wallet.tonInscriptions.state, (state) => state.items); | ||
} | ||
|
||
setWallet(wallet) { | ||
this.dataProvider = wallet.tonInscriptions.state; | ||
super.setWallet(wallet); | ||
constructor(wallet: Wallet) { | ||
super(wallet.tonInscriptions.state, (state) => state.items); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
packages/mobile/src/tabs/Wallet/content-providers/dependencies/staking.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
import { DependencyPrototype } from './utils/prototype'; | ||
import { tk } from '$wallet'; | ||
|
||
import { StakingState } from '$wallet/managers/StakingManager'; | ||
import { AccountStakingInfo, PoolInfo } from '@tonkeeper/core/src/TonAPI'; | ||
import { Wallet } from '$wallet/Wallet'; | ||
|
||
export class StakingDependency extends DependencyPrototype< | ||
StakingState, | ||
{ info: AccountStakingInfo; pool: PoolInfo }[] | ||
> { | ||
constructor() { | ||
super(tk.wallet.staking.state, (s) => | ||
constructor(wallet: Wallet) { | ||
super(wallet.staking.state, (s) => | ||
s.pools.map((pool) => ({ info: s.stakingInfo[pool.address], pool })), | ||
); | ||
} | ||
|
||
setWallet(wallet) { | ||
this.dataProvider = wallet.staking.state; | ||
super.setWallet(wallet); | ||
} | ||
} |
Oops, something went wrong.