Add fee rate unit preference & dropdown

This commit is contained in:
Mononaut
2023-06-15 15:15:20 -04:00
parent 408c86963b
commit a45f1fde1c
6 changed files with 60 additions and 0 deletions

View File

@@ -133,6 +133,7 @@ export class StateService {
hideFlow: BehaviorSubject<boolean>;
hideAudit: BehaviorSubject<boolean>;
fiatCurrency$: BehaviorSubject<string>;
rateUnits$: BehaviorSubject<string>;
constructor(
@Inject(PLATFORM_ID) private platformId: any,
@@ -225,6 +226,9 @@ export class StateService {
const fiatPreference = this.storageService.getValue('fiat-preference');
this.fiatCurrency$ = new BehaviorSubject<string>(fiatPreference || 'USD');
const rateUnitPreference = this.storageService.getValue('rate-unit-preference');
this.rateUnits$ = new BehaviorSubject<string>(rateUnitPreference || 'vb');
}
setNetworkBasedonUrl(url: string) {