From 4cca4ee3b7f7c8d2c832d1d07e9a7d78aab3c9d0 Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 5 Apr 2025 03:22:10 +0000 Subject: [PATCH] remove unused toggle button component --- lib/memex_web/components/core_components.ex | 18 ----------- .../core_components/toggle_button.html.heex | 30 ------------------- 2 files changed, 48 deletions(-) delete mode 100644 lib/memex_web/components/core_components/toggle_button.html.heex diff --git a/lib/memex_web/components/core_components.ex b/lib/memex_web/components/core_components.ex index 19ec45f..79ecaaa 100644 --- a/lib/memex_web/components/core_components.ex +++ b/lib/memex_web/components/core_components.ex @@ -57,24 +57,6 @@ defmodule MemexWeb.CoreComponents do attr :id, :string, default: nil slot(:inner_block) - @doc """ - A toggle button element that can be directed to a liveview or a - live_component's `handle_event/3`. - - ## Examples - - <.toggle_button action="my_liveview_action" value={@some_value}> - Toggle me! - - <.toggle_button action="my_live_component_action" target={@myself} value={@some_value}> - Whatever you want - - """ - def toggle_button(assigns) - - attr :user, User, required: true - slot(:inner_block, required: true) - def user_card(assigns) attr :invite, Invite, required: true diff --git a/lib/memex_web/components/core_components/toggle_button.html.heex b/lib/memex_web/components/core_components/toggle_button.html.heex deleted file mode 100644 index a2d9bb1..0000000 --- a/lib/memex_web/components/core_components/toggle_button.html.heex +++ /dev/null @@ -1,30 +0,0 @@ -