From 1b33632c29069b22973d4aea4b2af187318d9f6a Mon Sep 17 00:00:00 2001
From: shibao
Date: Tue, 1 Feb 2022 00:11:37 -0500
Subject: [PATCH] standardize initial buttons
---
.../live/container_live/index.html.heex | 15 ++++++---------
lib/cannery_web/live/invite_live/index.html.leex | 16 +++++++---------
lib/cannery_web/live/tag_live/index.html.heex | 16 +++++++---------
3 files changed, 20 insertions(+), 27 deletions(-)
diff --git a/lib/cannery_web/live/container_live/index.html.heex b/lib/cannery_web/live/container_live/index.html.heex
index 91a25878..d176e4cf 100644
--- a/lib/cannery_web/live/container_live/index.html.heex
+++ b/lib/cannery_web/live/container_live/index.html.heex
@@ -4,16 +4,13 @@
<%= if @containers |> Enum.empty?() do %>
-
-
- No containers
-
+
+ No containers 😔
+
- <%= live_patch to: Routes.container_index_path(@socket, :new),
- class: "btn btn-primary" do %>
- Create your first container!
- <% end %>
-
+ <%= live_patch "Add your first container!",
+ to: Routes.container_index_path(@socket, :new),
+ class: "btn btn-primary" %>
<% else %>
<%= live_patch to: Routes.container_index_path(@socket, :new),
class: "btn btn-primary" do %>
diff --git a/lib/cannery_web/live/invite_live/index.html.leex b/lib/cannery_web/live/invite_live/index.html.leex
index 33ec3a43..ea1f946c 100644
--- a/lib/cannery_web/live/invite_live/index.html.leex
+++ b/lib/cannery_web/live/invite_live/index.html.leex
@@ -4,16 +4,14 @@
<%= if @invites |> Enum.empty?() do %>
-
-
- No invites 😔
-
+
+ No invites 😔
+
- <%= live_patch to: Routes.invite_index_path(@socket, :new),
- class: "btn btn-primary" do %>
- Invite someone new!
- <% end %>
-
+ <%= live_patch to: Routes.invite_index_path(@socket, :new),
+ class: "btn btn-primary" do %>
+ Invite someone new!
+ <% end %>
<% else %>
<%= live_patch to: Routes.invite_index_path(@socket, :new),
class: "btn btn-primary" do %>
diff --git a/lib/cannery_web/live/tag_live/index.html.heex b/lib/cannery_web/live/tag_live/index.html.heex
index 37e411eb..68d2db80 100644
--- a/lib/cannery_web/live/tag_live/index.html.heex
+++ b/lib/cannery_web/live/tag_live/index.html.heex
@@ -6,15 +6,13 @@
Tags can be added to your containers to help you organize
<%= if @tags |> Enum.empty?() do %>
-
-
- No tags
-
- <%= live_patch("Create your first tag!",
- to: Routes.tag_index_path(@socket, :new),
- class: "btn btn-primary"
- ) %>
-
+
+ No tags 😔
+
+
+ <%= live_patch "Make your first tag!",
+ to: Routes.tag_index_path(@socket, :new),
+ class: "btn btn-primary" %>
<% else %>
<%= live_patch("New Tag",
to: Routes.tag_index_path(@socket, :new),