Skip to content

Commit bbc2de3

Browse files
claudejustin808
authored andcommitted
Remove pro_warning_badge from generate_component_script
Remove the call to pro_warning_badge_if_needed in the generate_component_script method. The method now returns the component specification tag directly without appending the warning badge HTML. This is part of removing the visual warning badge that appeared when non-pro users tried to use pro-only features.
1 parent cc6f86f commit bbc2de3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/react_on_rails/pro_helper.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def generate_component_script(render_options)
3232
component_specification_tag
3333
end
3434

35-
pro_warning_badge = pro_warning_badge_if_needed(render_options.explicitly_disabled_pro_options)
36-
"#{pro_warning_badge}\n#{spec_tag}".html_safe
35+
spec_tag.html_safe
3736
end
3837

3938
# Generates the complete store hydration script tag.

0 commit comments

Comments
 (0)