Add dropdown components, menus for RS auth items

This commit is contained in:
Râu Cao
2023-11-18 17:13:55 +01:00
parent 27bb7d1bfe
commit 721dccb499
8 changed files with 80 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
<div class="py-4 w-1/2 flex items-center gap-6">
<div class="flex items-center gap-4">
<div class="h-16 w-16 flex-none">
<%= image_tag s3_image_url(@web_app.icon), class: "h-full w-full" %>
</div>
@@ -15,11 +15,14 @@
<!-- Approved <%= time_ago_in_words @auth.created_at %> ago -->
<!-- </p> -->
<!-- </div> -->
<div>
<p class="text-sm text-gray-500">
<%= link_to "#", class: "btn-md btn-outline text-red-700 relative" do %>
Revoke access
<% end %>
</p>
</div>
<%= render DropdownComponent.new do %>
<%= render DropdownLinkComponent.new(href: "#") do %>
Launch app
<% end %>
<%= render DropdownLinkComponent.new(
href: "#", separator: true, add_class: "text-red-700"
) do %>
Revoke access
<% end %>
<% end %>
</div>