Files
astuto/app/views/devise/shared/_o_auths.html.erb
2024-03-28 12:29:54 +01:00

18 lines
525 B
Plaintext

<% if not @o_auths.blank? %>
<hr />
<% @o_auths.each do |o_auth| %>
<%=
react_component(
'common/OAuthProviderLink',
{
oAuthId: o_auth.id,
oAuthName: o_auth.name,
oAuthLogo: o_auth.logo,
oAuthReason: "login",
isSignUp: defined?(is_sign_up) ? is_sign_up : false,
href: get_url_for(method(:o_auth_start_url), resource: o_auth.id, disallow_custom_domain: true, options: { reason: "login" }),
}
)
%>
<% end %>
<% end %>