From 1698de332c50f3a3902f07c42b9eaf69994438de Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 31 Oct 2023 21:13:12 +0100 Subject: [PATCH] Add href to news episode items --- front/packages/ui/src/home/news.tsx | 1 + front/packages/ui/src/search/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/front/packages/ui/src/home/news.tsx b/front/packages/ui/src/home/news.tsx index 133fc0bb..60d424cc 100644 --- a/front/packages/ui/src/home/news.tsx +++ b/front/packages/ui/src/home/news.tsx @@ -73,6 +73,7 @@ export const NewsList = () => { } overview={x.name} thumbnail={x.thumbnail} + href={x.href} // TODO: support this on mobile too // @ts-expect-error This is a web only property {...css({ gridColumnEnd: "span 2" })} diff --git a/front/packages/ui/src/search/index.tsx b/front/packages/ui/src/search/index.tsx index e5ced300..c36f442f 100644 --- a/front/packages/ui/src/search/index.tsx +++ b/front/packages/ui/src/search/index.tsx @@ -61,6 +61,7 @@ export const SearchPage: QueryPage<{ q?: string }> = ({ q }) => { query={query(q, sortKey, sortOrd)} placeholderCount={15} layout={LayoutComponent.layout} + empty={t("search.empty")} Header={