Update the button style for Author's form.

This commit is contained in:
2025-03-28 11:03:26 +02:00
parent 9c2b596942
commit f210fb0ff1
2 changed files with 8 additions and 5 deletions
@@ -10,6 +10,9 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents do
import MyComponents.Buttons, only: [
success_button: 1,
primary_button: 1,
save_button: 1,
edit_button: 1,
cancel_button: 1,
]
end
end
@@ -46,12 +46,12 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.FormComponent do
<% end %>
<:actions>
<.success_button phx-disable-with="Saving...">
Save Author
</.success_button>
<.primary_button phx-click="cancel" phx-target={@myself}>
<.save_button phx-disable-with="Saving...">
Save
</.save_button>
<.cancel_button phx-click="cancel" phx-target={@myself}>
Cancel
</.primary_button>
</.cancel_button>
</:actions>
</.simple_form>
</div>