From f210fb0ff1120ef468a8406c55f63354e85d11da Mon Sep 17 00:00:00 2001 From: KKlochko Date: Fri, 28 Mar 2025 11:03:26 +0200 Subject: [PATCH] Update the button style for Author's form. --- .../components/my_components.ex | 3 +++ .../live/author_live/form_component.ex | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/decentralised_book_index_web/components/my_components.ex b/lib/decentralised_book_index_web/components/my_components.ex index 8fc17d5..b48e3e8 100644 --- a/lib/decentralised_book_index_web/components/my_components.ex +++ b/lib/decentralised_book_index_web/components/my_components.ex @@ -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 diff --git a/lib/decentralised_book_index_web/live/author_live/form_component.ex b/lib/decentralised_book_index_web/live/author_live/form_component.ex index 18d568d..b1fc310 100644 --- a/lib/decentralised_book_index_web/live/author_live/form_component.ex +++ b/lib/decentralised_book_index_web/live/author_live/form_component.ex @@ -46,12 +46,12 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.FormComponent do <% end %> <:actions> - <.success_button phx-disable-with="Saving..."> - Save Author - - <.primary_button phx-click="cancel" phx-target={@myself}> + <.save_button phx-disable-with="Saving..."> + Save + + <.cancel_button phx-click="cancel" phx-target={@myself}> Cancel - +