diff --git a/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.html b/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.html index ba66d412e0..c67cad98c8 100644 --- a/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.html +++ b/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.html @@ -1,4 +1,4 @@ -
+

N

@@ -17,8 +17,13 @@

{{ shorthand(mockStargazers) }}

Edit - - + + Go to Website
diff --git a/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.ts b/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.ts index 410a8aa94d..284f03bd6d 100644 --- a/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.ts +++ b/libs/openchallenges/challenge/src/lib/challenge-stats/challenge-stats.component.ts @@ -1,6 +1,5 @@ import { Component, Input, OnInit } from '@angular/core'; import { Challenge } from '@sagebionetworks/openchallenges/api-client-angular'; -import { Observable } from 'rxjs'; import { CommonModule } from '@angular/common'; import { MatIconModule } from '@angular/material/icon'; @@ -12,8 +11,9 @@ import { MatIconModule } from '@angular/material/icon'; styleUrls: ['./challenge-stats.component.scss'], }) export class ChallengeStatsComponent implements OnInit { + @Input({ required: true }) challenge: Challenge | undefined = undefined; @Input({ required: true }) loggedIn = false; - challenge$!: Observable; + mockViews!: number; mockStargazers!: number; diff --git a/libs/openchallenges/challenge/src/lib/challenge.component.html b/libs/openchallenges/challenge/src/lib/challenge.component.html index d836b50050..44a021e61e 100644 --- a/libs/openchallenges/challenge/src/lib/challenge.component.html +++ b/libs/openchallenges/challenge/src/lib/challenge.component.html @@ -20,7 +20,7 @@

- +