-
-
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.
- Loading branch information
1 parent
1632384
commit 8f703d1
Showing
3 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
27 changes: 21 additions & 6 deletions
27
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,29 @@ | ||
<%= render CardComponent.new(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'), | ||
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