mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Scope Plaid Link script to Plaid flows
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
|
||||
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
|
||||
|
||||
<%= javascript_include_tag "https://cdn.plaid.com/link/v2/stable/link-initialize.js" %>
|
||||
<%= combobox_style_tag %>
|
||||
|
||||
<%= yield :plaid_link %>
|
||||
<%= javascript_importmap_tags %>
|
||||
<%= render "layouts/dark_mode_check" %>
|
||||
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<%# locals: (link_token:, region:, item_id:, is_update: false) %>
|
||||
|
||||
<% content_for :plaid_link, flush: true do %>
|
||||
<%= javascript_include_tag "https://cdn.plaid.com/link/v2/stable/link-initialize.js" %>
|
||||
<% end %>
|
||||
|
||||
<%= tag.div data: {
|
||||
controller: "plaid",
|
||||
plaid_link_token_value: link_token,
|
||||
|
||||
Reference in New Issue
Block a user