Skip to content

Commit

Permalink
lint/prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
amenconi committed Mar 10, 2024
1 parent 7f5e19d commit 7df151f
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,8 @@ <h4 class="flex items-center justify-between">

<article class="testArticle">
MemberId: {{ (data.member$ | async)?.uid }}<br />
Spaces: {{ (data.space$ | async) }}
<div *ngFor="let s of data.space$ | async">
Space Item: {{ s.uid }}<br />
</div>
Spaces: {{ data.space$ | async }}
<div *ngFor="let s of data.space$ | async">Space Item: {{ s.uid }}<br /></div>
</article>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class MemberAboutComponent implements OnInit {
public previewImageService: PreviewImageService,
public auth: AuthService,
public cd: ChangeDetectorRef,
) {
}
) {}

public ngOnInit(): void {
this.data.triggerAction$.pipe(skip(1), untilDestroyed(this)).subscribe((s) => {
Expand Down Expand Up @@ -67,5 +66,4 @@ export class MemberAboutComponent implements OnInit {
public trackByUid(index: number, item: any): any {
return item ? item.uid : index;
}

}
1 change: 0 additions & 1 deletion src/app/pages/member/pages/awards/awards.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ export class AwardsPage {
public trackByUid(index: number, item: any): any {
return item ? item.uid : index;
}

}
1 change: 0 additions & 1 deletion src/app/pages/member/pages/badges/badges.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,4 @@ export class BadgesPage implements OnInit {
public trackByUid(index: number, item: any): any {
return item ? item.uid : index;
}

}
21 changes: 14 additions & 7 deletions src/app/pages/member/pages/member/member.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,27 @@ export class MemberPage implements OnInit, OnDestroy {
// TODO Implement search. This is parked since we will be implementing new search here.

this.subscriptions$.push(
this.memberApi.topSpaces(memberId).pipe(
untilDestroyed(this),
map(spaces => spaces.filter(space => space && typeof space.uid === 'string' && space.uid.trim() !== ''))
).subscribe((filteredSpaces) => {
this.data.space$.next(filteredSpaces);
}),
this.memberApi
.topSpaces(memberId)
.pipe(
untilDestroyed(this),
map((spaces) =>
spaces.filter(
(space) => space && typeof space.uid === 'string' && space.uid.trim() !== '',
),
),
)
.subscribe((filteredSpaces) => {
this.data.space$.next(filteredSpaces);
}),
);

this.subscriptions$.push(
this.memberApi
.listen(memberId)
.pipe(
untilDestroyed(this),
filter(v => v && typeof v.uid === 'string' && v.uid.trim() !== '')
filter((v) => v && typeof v.uid === 'string' && v.uid.trim() !== ''),
)
.subscribe((validMember) => {
// Only pass next stage if valid.
Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/member/pages/nfts/nfts.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export class NFTsPage implements OnInit {
private route: ActivatedRoute,
private router: Router,
private nftSelectionService: NftSelectionService,
) {
}
) {}

public ngOnInit(): void {
this.route.params.subscribe((params) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ export class MemberSpacesComponent implements OnInit {
public trackByUid(index: number, item: any): any {
return item ? item.uid : index;
}

}
3 changes: 1 addition & 2 deletions src/app/pages/member/pages/transactions/transactions.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export class TransactionsPage implements OnInit, OnDestroy {
private memberApi: MemberApi,
private cd: ChangeDetectorRef,
private route: ActivatedRoute,
) {
}
) {}

public ngOnInit(): void {
this.route.params.subscribe((params) => {
Expand Down

0 comments on commit 7df151f

Please sign in to comment.