-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds content for Stripe Account settings component when Stripe utilit…
…y missing (#1842)
- Loading branch information
1 parent
1632384
commit 2c2f531
Showing
3 changed files
with
47 additions
and
18 deletions.
There are no files selected for viewing
32 changes: 24 additions & 8 deletions
32
app/components/marketplace/stripe_overview_component/stripe_overview_component.html.erb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
<%= render CardComponent.new(classes: "flex flex-col h-full | ||
<%= render CardComponent.new(dom_id: "stripe_overview", classes: "flex flex-col h-full | ||
") do %> | ||
<header class="flex font-bold"> | ||
<%= marketplace_stripe_utility&.name %> | ||
</header> | ||
<footer class="flex flex-row justify-between mt-3"> | ||
<%= render ButtonComponent.new( | ||
<%- if marketplace.stripe_api_key? %> | ||
<header class="flex font-bold"> | ||
<%= marketplace_stripe_utility.name %> | ||
</header> | ||
<footer class="flex flex-row justify-between mt-3"> | ||
<%= render ButtonComponent.new( | ||
label: "View #{t('marketplace.stripe_accounts.show.link_to')}", | ||
title: t('marketplace.stripe_accounts.show.link_to'), | ||
title: "View #{t('marketplace.stripe_accounts.show.link_to')}", | ||
href: marketplace.location(:index, child: :stripe_account), | ||
method: :get, | ||
scheme: :secondary) %> | ||
</footer> | ||
</footer> | ||
<%- else %> | ||
<header class="flex" | ||
>To start accepting payments, add your Stripe Account.</header> | ||
<footer class="flex flex-row justify-between mt-3 | ||
"> | ||
<%= render ButtonComponent.new( | ||
label: "Add #{t('marketplace.stripe_accounts.show.link_to')}", | ||
title: "Add #{t('marketplace.stripe_accounts.show.link_to')}", | ||
href: marketplace.location(:index, child: :stripe_account), | ||
method: :get, | ||
scheme: :secondary | ||
) | ||
%> | ||
</footer> | ||
<%- end %> | ||
<%- end %> |
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
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