remove rtl for now

This commit is contained in:
natsoni 2024-07-05 16:48:50 +09:00
parent fb8bd4b194
commit 7c08a104ce
No known key found for this signature in database
GPG Key ID: C65917583181743B

View File

@ -1,4 +1,4 @@
import { Component, Input, OnInit, OnChanges, Inject, LOCALE_ID } from '@angular/core';
import { Component, Input, OnInit, OnChanges } from '@angular/core';
import { ETA } from '../../services/eta.service';
import { Transaction } from '../../interfaces/electrs.interface';
@ -13,15 +13,8 @@ export class AccelerationTimelineComponent implements OnInit, OnChanges {
@Input() eta: ETA;
acceleratedAt: number;
dir: 'rtl' | 'ltr' = 'ltr';
constructor(
@Inject(LOCALE_ID) private locale: string,
) {
if (this.locale.startsWith('ar') || this.locale.startsWith('fa') || this.locale.startsWith('he')) {
this.dir = 'rtl';
}
}
constructor() {}
ngOnInit(): void {
this.acceleratedAt = this.tx.acceleratedAt ?? new Date().getTime() / 1000;