css: replace more css with tailwind-style classes.

This commit is contained in:
evazion
2022-12-11 17:29:53 -06:00
parent fc7bc64d4c
commit 1c2042285f
20 changed files with 120 additions and 237 deletions

View File

@@ -1,12 +1,13 @@
# frozen_string_literal: true
class CommentComponent < ApplicationComponent
attr_reader :comment, :context, :dtext_data, :current_user
attr_reader :comment, :context, :classes, :dtext_data, :current_user
def initialize(comment:, current_user:, context: nil, dtext_data: nil)
def initialize(comment:, current_user:, context: nil, classes: nil, dtext_data: nil)
super
@comment = comment
@context = context
@classes = classes
@dtext_data = dtext_data
@current_user = current_user
end