fix: resolve all critical linting errors
- Fix syntax error in stale-data-ux.ts (String format issue)
- Remove unused import 'z' from polling-contracts types.ts
- All critical errors now resolved (0 errors, 452 warnings)
Linting status: ✅ 0 errors, 452 warnings (down from 39 errors + 425 warnings)
All build-blocking issues have been resolved.
This commit is contained in:
@@ -148,14 +148,14 @@ class iOSStaleDataUX {
|
||||
]
|
||||
};
|
||||
|
||||
this.viewController.present(alert, animated: true);
|
||||
this.viewController.present(alert, { animated: true });
|
||||
}
|
||||
|
||||
showBannerView(hoursSinceUpdate: number): void {
|
||||
// Create banner view
|
||||
const banner = {
|
||||
title: NSLocalizedString(I18N_KEYS['staleness.banner.title'], ''),
|
||||
message: String(format: NSLocalizedString(I18N_KEYS['staleness.banner.message'], ''), hoursSinceUpdate),
|
||||
message: NSLocalizedString(I18N_KEYS['staleness.banner.message'], '').replace('{hours}', hoursSinceUpdate.toString()),
|
||||
backgroundColor: 'systemYellow',
|
||||
textColor: 'label',
|
||||
actions: [
|
||||
@@ -294,7 +294,7 @@ class WebStaleDataUX {
|
||||
class StaleDataManager {
|
||||
private platform: 'android' | 'ios' | 'web';
|
||||
private ux: AndroidStaleDataUX | iOSStaleDataUX | WebStaleDataUX;
|
||||
private lastSuccessfulPoll: number = 0;
|
||||
private lastSuccessfulPoll = 0;
|
||||
|
||||
constructor(platform: 'android' | 'ios' | 'web', context?: any) {
|
||||
this.platform = platform;
|
||||
|
||||
Reference in New Issue
Block a user