From 06d456b0abeb61b6f3605074a6bfaa12b1d2d99d Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Tue, 28 May 2024 02:56:15 +0000 Subject: [PATCH] Use link block component where we can --- app/views/_tailwind/home/_stats.html.erb | 24 +++++++++---------- .../_tailwind/profiles/_comment.html.erb | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/views/_tailwind/home/_stats.html.erb b/app/views/_tailwind/home/_stats.html.erb index 0a860e21a..a25a4c888 100644 --- a/app/views/_tailwind/home/_stats.html.erb +++ b/app/views/_tailwind/home/_stats.html.erb @@ -3,31 +3,31 @@ <%= render Tailwind::Heading.new(tag: :h1, extra_classes: "mb-12").with_content("This week at Planning Alerts") %> diff --git a/app/views/_tailwind/profiles/_comment.html.erb b/app/views/_tailwind/profiles/_comment.html.erb index 0fe1f42f5..34fa4426b 100644 --- a/app/views/_tailwind/profiles/_comment.html.erb +++ b/app/views/_tailwind/profiles/_comment.html.erb @@ -18,7 +18,7 @@

<%= render Tailwind::QuotedBlock.new do %> - <%= link_to comment, class: "block focus:outline-none focus:bg-sun-yellow" do %> + <%= render Tailwind::LinkBlock.new(url: comment_path(comment)) do %> <%= render "comments/comment_text", comment: %> <%# TODO: This space between the text and the date looks too big to me %>