<% EmojiHelper::REACTIONS.each do |character, title| %>
- <%= form_with model: [ comment.card, comment, Reaction.new ], data: { turbo_frame: dom_id(comment, :new_reaction), action: "dialog#close"} do |form| %>
- <%= hidden_field_tag "reaction[content]", character %>
- <%= form.button type: "submit", title: title, class: "reaction__quick-emoji-btn btn btn--circle", data: { emoji: character } do %>
-
<%= character %>
- <% end %>
- <% end %>
+ <%= tag.button character, title: title, class: "reactions__emoji-btn btn btn--circle", data: { emoji: character } %>
<% end %>
-
-
- <%= link_to new_card_comment_reaction_path(comment.card, comment), role: "button",
- class: "btn btn--circle", action: "soft-keyboard#open",
- data: { turbo_frame: dom_id(comment, :new_reaction), action: "dialog#close" } do %>
- <%= icon_tag "reaction" %>
- Add your own reaction
- <% end %>
-