Skip to content

Commit

Permalink
fix: updates for NoFoundBikes, BikesCard
Browse files Browse the repository at this point in the history
  • Loading branch information
prostoleo committed Jul 11, 2023
1 parent e31f7d2 commit 4d80bf5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions astro/src/components/bikes/BikesSearchList.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import type { BikesSearchCardProps } from "@components/cards/BikesSearchCard.astro";
import BikesSearchCard from "@components/cards/BikesSearchCard.astro";
import NoBikesFound from "@components/bikes/NoBikesFound.astro";
export interface BikesSearchListProps {
items: BikesSearchCardProps[];
Expand All @@ -24,10 +25,6 @@ const { items = [], class: classes } = Astro.props as BikesSearchListProps;
))}
</ul>
) : (
<>
<p class="text-center my-4 md:my-10">
Nothing was found on given query 😢
</p>
</>
<NoBikesFound />
)
}
2 changes: 1 addition & 1 deletion astro/src/components/cards/BikesCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const formattedMatchScore = matchScore ? (matchScore * 100).toFixed(0) : null;
class="block w-full text-center leading-5 rounded-md bg-primary-600 py-2 px-4 text-white text-sm"
href={localizePath("/report/[id]").replace("[id]", id)}
>
{t("homepage.view_report", "View Report")}
{t("components.listing_card.view_report", "View Report")}
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion astro/src/components/cards/BikesSearchCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const imgSrc = `/photos/${id}/${filename_download}`;
class="block w-full text-center leading-5 rounded-md bg-primary-600 py-2 px-4 text-white text-sm"
href={localizePath("/report/[id]").replace("[id]", report_id)}
>
{t("homepage.view_report", "View Report")}
{t("components.listing_card.view_report", "View Report")}
</a>
</div>
</div>
Expand Down

0 comments on commit 4d80bf5

Please sign in to comment.