Last active
January 4, 2023 05:55
-
-
Save krsyoung/f9603bd7aa73b13f72dc2fffd2fbbb6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- replace all turbo frames with a class of "notifications" --> | |
<%= turbo_stream.replace_all "div.notifications" do %> | |
<%= render(Notification::BadgeComponent.new(notifications: current_user.notifications)) %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment