use credo style

This commit is contained in:
2023-02-04 17:28:53 -05:00
committed by oliviasculley
parent 30d3f76fe1
commit 5c05f3b6fe
18 changed files with 47 additions and 46 deletions

View File

@ -124,7 +124,7 @@ defmodule LokalWeb.InviteLive.Index do
end
@impl true
def handle_event("copy_to_clipboard", _, socket) do
def handle_event("copy_to_clipboard", _params, socket) do
prompt = dgettext("prompts", "Copied to clipboard")
{:noreply, socket |> put_flash(:info, prompt)}
end

View File

@ -49,7 +49,7 @@ defmodule LokalWeb.LiveHelpers do
id="modal-content"
class="fade-in-scale w-full max-w-3xl relative
pointer-events-auto overflow-hidden
px-8 py-4 sm:py-8 flex flex-col justify-center items-center
px-8 py-4 sm:py-8
flex flex-col justify-start items-center
bg-white border-2 rounded-lg"
>

View File

@ -2,7 +2,6 @@ defmodule LokalWeb.EmailView do
@moduledoc """
A view for email-related helper functions
"""
alias LokalWeb.{Endpoint, HomeLive}
use LokalWeb, :view
alias LokalWeb.{Endpoint, HomeLive}
end

View File

@ -8,7 +8,7 @@ defmodule LokalWeb.ErrorView do
case error_path do
"404.html" -> dgettext("errors", "Not found")
"401.html" -> dgettext("errors", "Unauthorized")
_ -> dgettext("errors", "Internal Server Error")
_other_path -> dgettext("errors", "Internal Server Error")
end
render("error.html", %{error_string: error_string})