|
|
|
@ -69,7 +69,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.Buttons do
|
|
|
|
|
|
|
|
|
|
slot :inner_block, required: true
|
|
|
|
|
|
|
|
|
|
def add_button(assigns) do
|
|
|
|
|
def add_button_link(assigns) do
|
|
|
|
|
~H"""
|
|
|
|
|
<.link
|
|
|
|
|
class={[
|
|
|
|
@ -80,8 +80,22 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.Buttons do
|
|
|
|
|
]}
|
|
|
|
|
{@rest}
|
|
|
|
|
>
|
|
|
|
|
<svg class="w-6 h-6 text-white dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7 7V5"/>
|
|
|
|
|
<svg
|
|
|
|
|
class="w-6 h-6 text-white dark:text-white"
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
width="24"
|
|
|
|
|
height="24"
|
|
|
|
|
fill="none"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
>
|
|
|
|
|
<path
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
d="M5 12h14m-7 7V5"
|
|
|
|
|
/>
|
|
|
|
|
</svg>
|
|
|
|
|
{render_slot(@inner_block)}
|
|
|
|
|
</.link>
|
|
|
|
|