Skip to content

Commit

Permalink
Ameba fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendolan committed Nov 8, 2023
1 parent ec8df49 commit e01b986
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/centered_form_panel.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Shared::CenteredFormPanel < BaseComponent
needs title : String

def render
def render(&)
div class: "min-h-screen -mt-32 flex flex-col justify-center py-12 sm:px-6 lg:px-8" do
h2 class: "mt-6 text-center text-3xl leading-9 font-extrabold text-gray-900" do
text title
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/button.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UI::Button < BaseComponent

needs size : Size = Size::Medium

def render
def render(&)
span class: "inline-flex rounded-md shadow-sm" do
tag_defaults class: "#{button_classes} #{size_classes}" do |button_builder|
yield button_builder
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/navbar_hamburger_button.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UI::NavbarHamburgerButton < BaseComponent
BUTTON_BORDER_HOVER = "border-gray-300"
BUTTON_BORDER_FOCUS = "border-gray-300"

def render
def render(&)
tag_defaults class: button_classes do |button_builder|
yield button_builder
end
Expand Down
4 changes: 2 additions & 2 deletions src/components/users/form_fields.cr
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Users::FormFields < BaseComponent
needs operation : SaveUserSettings

def render
def render(&)
div class: "mt-6 grid grid-cols-12 gap-6" do
if (user = operation.record)
if user = operation.record
div class: "col-span-12" do
mount Shared::Field, operation.readonly_email, "Email", &.email_input(attrs: [:disabled], value: user.email, append_class: "bg-gray-50")
end
Expand Down

0 comments on commit e01b986

Please sign in to comment.