Blacked and isorted the python files
Prettied and eslinted the typescript/html files
This commit is contained in:
@ -1,16 +1,14 @@
|
||||
import { DataSource } from '@angular/cdk/collections';
|
||||
import { Observable, of as observableOf } from 'rxjs';
|
||||
|
||||
export class DiscountDataSource extends DataSource<{name: string, discount: number}> {
|
||||
|
||||
constructor(private data: {name: string, discount: number}[]) {
|
||||
export class DiscountDataSource extends DataSource<{ name: string; discount: number }> {
|
||||
constructor(private data: { name: string; discount: number }[]) {
|
||||
super();
|
||||
}
|
||||
|
||||
connect(): Observable<{name: string, discount: number}[]> {
|
||||
connect(): Observable<{ name: string; discount: number }[]> {
|
||||
return observableOf(this.data);
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
}
|
||||
disconnect() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user