From 700183512668745b4455514df0f9ca579db425c7 Mon Sep 17 00:00:00 2001 From: cibernox Date: Wed, 4 Dec 2024 15:24:35 +0000 Subject: [PATCH] auto format code --- .../components/visual_editor/key_value_control.ex | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/beacon/live_admin/components/visual_editor/key_value_control.ex b/lib/beacon/live_admin/components/visual_editor/key_value_control.ex index 2fdfa940..6116253b 100644 --- a/lib/beacon/live_admin/components/visual_editor/key_value_control.ex +++ b/lib/beacon/live_admin/components/visual_editor/key_value_control.ex @@ -1,7 +1,7 @@ defmodule Beacon.LiveAdmin.VisualEditor.KeyValueControl do @moduledoc false -require IEx + require IEx use Beacon.LiveAdmin.Web, :live_component alias Beacon.LiveAdmin.VisualEditor.ControlSection @@ -35,11 +35,11 @@ require IEx <.input field={f[:name]} placeholder="Name" class="w-full py-1 px-2 bg-gray-100 border-gray-100 rounded-md leading-6 text-sm" /> <%!-- <%= inspect(f[:value]) %> --%> <.input field={f[:value]} errors={["error 1", "error 2"]} placeholder="Value" class="mt-3 w-full py-1 px-2 bg-gray-100 border-gray-100 rounded-md leading-6 text-sm" /> -
- <%= for {field, {message, _}} <- @changeset.errors do %> -

<%= field %> <%= message %>

- <% end %> -
+
+ <%= for {field, {message, _}} <- @changeset.errors do %> +

<%= field %> <%= message %>

+ <% end %> +
<%!-- --%> <%!-- --%>
@@ -95,7 +95,7 @@ require IEx {:noreply, socket} end - def handle_event("save", %{"form_data" => params }, socket) do + def handle_event("save", %{"form_data" => params}, socket) do existing_attrs = socket.assigns.element["attrs"] || %{} changeset = changeset(socket.assigns.changeset, %{name: params["name"], value: params["value"]}, existing_attrs)