Add toggle switch component, service configs, admin profile links

This commit is contained in:
Râu Cao
2023-03-12 12:55:21 +07:00
committed by Gitea
parent f050d010fd
commit 805733939c
6 changed files with 132 additions and 10 deletions
@@ -0,0 +1,9 @@
# frozen_string_literal: true
module FormElements
class ToggleComponent < ViewComponent::Base
def initialize(enabled:)
@enabled = !!enabled
end
end
end