Bugfix: Dashboard - Difficulty adjustment component. (#663)

* Add color to previous retarget.
Add absolute number pipe.
Change plus and minus signs to fa icons.
Change Fee Estimate title to Transactions Fees.
Set min and max difficulty adjustments.

* Add projectID to cypress conf.

* Change icon to fa-caret.

* Remove unecessary icons.
This commit is contained in:
Miguel Medeiros
2021-07-26 16:00:40 -03:00
committed by GitHub
parent 60d8697b09
commit 751c7d6e69
8 changed files with 86 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
import { AbsolutePipe } from './absolute.pipe';
describe('AbsolutePipe', () => {
it('create an instance', () => {
const pipe = new AbsolutePipe();
expect(pipe).toBeTruthy();
});
});

View File

@@ -0,0 +1,8 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'absolute' })
export class AbsolutePipe implements PipeTransform {
transform(nr: number) {
return Math.abs(nr);
}
}