Skip to content

Commit

Permalink
Revert "Use ClipboardCopy to provide copyable link to location"
Browse files Browse the repository at this point in the history
This reverts commit 4a46f09.
  • Loading branch information
oliverguenther committed Mar 27, 2024
1 parent ecc37a9 commit f8b746a
Showing 1 changed file with 9 additions and 17 deletions.
Expand Up @@ -70,25 +70,17 @@

if @meeting.location.present?
details.with_row(mt: 2) do
flex_layout(align_items: :center) do |location|
location.with_column do
if @meeting.location.include?("http")
render_meeting_attribute_row(:link) do
render(Primer::Beta::Link.new(href: @meeting.location, target: "_blank")) do
render_truncated_location
end
end
else
render_meeting_attribute_row(:location) do
render(Primer::Beta::Text.new) do
render_truncated_location
end
end
if @meeting.location.include?("http")
render_meeting_attribute_row(:link) do
render(Primer::Beta::Link.new(href: @meeting.location, target: "_blank")) do
render_truncated_location
end
end
location.with_column(ml: 1) do
render(Primer::Beta::ClipboardCopy.new(value: @meeting.location,
"aria-label": I18n.t(:button_copy_to_clipboard)))
else
render_meeting_attribute_row(:location) do
render(Primer::Beta::Text.new) do
render_truncated_location
end
end
end
end
Expand Down

0 comments on commit f8b746a

Please sign in to comment.