Skip to content

Commit

Permalink
Run formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisdevtailor committed Jul 21, 2022
1 parent 25ae789 commit d65cafc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/moon_web/components/icon_item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ defmodule MoonWeb.Components.IconItem do

def render(assigns) do
~F"""
<div
class="cursor-pointer rounded-moon-i-sm transition-colors hover:bg-piccolo-100/[.12] text-trunks-100 hover:text-piccolo-100">
<div class="cursor-pointer rounded-moon-i-sm transition-colors hover:bg-piccolo-100/[.12] text-trunks-100 hover:text-piccolo-100">
<Icon name={@name} font_size="2rem" click={@click} value={@value} />
</div>
"""
Expand Down
8 changes: 6 additions & 2 deletions lib/moon_web/pages/tutorials/icons/icons_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule MoonWeb.Pages.IconsPage do
def render(assigns) do
~F"""
<Page theme_name={@theme_name} active_page={@active_page} breadcrumbs={@breadcrumbs}>
<ComponentPageDescription title="Icons"/>
<ComponentPageDescription title="Icons" />
<ExampleAndCode title="Sizes and colors" id="icons">
<:example>
Expand All @@ -55,7 +55,10 @@ defmodule MoonWeb.Pages.IconsPage do
Please select icons for Import.
</p>
<PageSection title="Import code for selected icons (by attribute)" :if={!Enum.empty?(@selected_icons)}>
<PageSection
title="Import code for selected icons (by attribute)"
:if={!Enum.empty?(@selected_icons)}
>
<IconsImportDisplay>
{get_import_text_by_attribute(assigns, @selected_icons)}
</IconsImportDisplay>
Expand Down Expand Up @@ -275,6 +278,7 @@ defmodule MoonWeb.Pages.IconsPage do
end

defp get_alias_string(names) do
# credo:disable-for-next-line Credo.Check.Consistency.SpaceInParentheses
"alias Moon.Icons.{#{names}}"
end

Expand Down

0 comments on commit d65cafc

Please sign in to comment.