Add option for hiding close button in modal windows

This commit is contained in:
2024-02-10 10:24:09 +01:00
parent 8747ce4eb0
commit ca238be6f4
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1,2 +1,5 @@
class ModalComponent < ViewComponent::Base
def initialize(show_close_button: true)
@show_close_button = show_close_button
end
end