fix tests (from project-page switch 4 commits ago) and fix linting

This commit is contained in:
2024-11-03 15:23:03 -07:00
parent 4168c37074
commit 67b2b7199a
8 changed files with 56 additions and 36 deletions

View File

@@ -113,9 +113,7 @@
<!-- show the actions for recognizing a give -->
<div class="flex">
<h2 class="text-xl font-bold">
What have you seen someone do?
</h2>
<h2 class="text-xl font-bold">What have you seen someone do?</h2>
<button
@click="openGiftedPrompts()"
class="ml-2 block text-xs text-center bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1 rounded-md"
@@ -179,7 +177,8 @@
<!-- Results List -->
<div class="bg-slate-100 rounded-md px-4 py-3 mt-4 mb-4">
<div class="flex items-center mb-4">
<h2 class="text-xl font-bold">Latest Activity
<h2 class="text-xl font-bold">
Latest Activity
<button @click="openFeedFilters()">
<span class="text-xs text-white">
<fa
@@ -210,15 +209,11 @@
<span class="block text-center text-6xl">
{{ numNewOffersToUser }}
</span>
<p>
new offer{{ numNewOffersToUser === 1 ? "" : "s" }} to you
</p>
<p>new offer{{ numNewOffersToUser === 1 ? "" : "s" }} to you</p>
</div>
</div>
<div class="flex justify-end mt-2">
<button class="text-blue-500">
View All New Activity For You
</button>
<button class="text-blue-500">View All New Activity For You</button>
</div>
</div>
@@ -511,9 +506,14 @@ export default class HomeView extends Vue {
this.updateAllFeed();
if (this.activeDid) {
this.numNewOffersToUser =
(await getNewOffersToUser(this.axios, this.apiServer, this.activeDid, this.lastAckedOfferToUserJwtId))
.length;
this.numNewOffersToUser = (
await getNewOffersToUser(
this.axios,
this.apiServer,
this.activeDid,
this.lastAckedOfferToUserJwtId,
)
).length;
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any