Skip to content

Commit

Permalink
Use AdminTooltipComponent, instead of partial
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Sep 30, 2024
1 parent 2618b4e commit 27dfac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/admin/variants/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
= f.check_box :on_demand, data: { "action": "click->edit-variant#toggleOnHand" }
= t(:on_demand)

= render partial: "admin/shared/tooltip", locals: { tooltip_text: t('admin.products.variants.to_order_tip'), link_text: t('admin.whats_this'), placement: "right" }
= render AdminTooltipComponent.new(text: t('admin.products.variants.to_order_tip'), link_text: t('admin.whats_this'), placement: "right")
.field
= f.label :on_hand, t(:on_hand)
.fullwidth
Expand Down

0 comments on commit 27dfac7

Please sign in to comment.