Add render method to notification item component

This commit is contained in:
taitus
2024-06-25 17:08:03 +02:00
parent 1a8676f2d4
commit 1e6901ec34
3 changed files with 29 additions and 12 deletions

View File

@@ -5,6 +5,10 @@ class Layout::NotificationItemComponent < ApplicationComponent
@user = user
end
def render?
user.present?
end
private
def text