aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frontend/tubo/items/views.cljs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/frontend/tubo/items/views.cljs b/src/frontend/tubo/items/views.cljs
index 9a72fcb..5cc299b 100644
--- a/src/frontend/tubo/items/views.cljs
+++ b/src/frontend/tubo/items/views.cljs
@@ -166,13 +166,11 @@
(let [service-color @(rf/subscribe [:service-color])
pagination-loading? @(rf/subscribe [:show-pagination-loading])
bookmarks @(rf/subscribe [:bookmarks])
- item-url #(rfe/href (case (:type %)
- "stream" :stream-page
- "channel" :channel-page
- "playlist" :playlist-page
- (:url %))
- nil
- {:url (:url %)})]
+ item-url #(case (:type %)
+ "stream" (rfe/href :stream-page nil {:url %})
+ "channel" (rfe/href :channel-page nil {:url %})
+ "playlist" (rfe/href :playlist-page nil {:url %})
+ (:url %))]
[:div.flex.flex-col.flex-auto.my-2.md:my-8
(if (empty? related-streams)
[:div.flex.items-center.flex-auto.flex-col.justify-center.gap-y-4