Skip to content

Commit

Permalink
Fix import & Moved button to own file for override (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roene-JustBetter authored Dec 7, 2023
1 parent 0952a16 commit a14e63e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/views/checkout/partials/sections/payment.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<x-rapidez-ct::card.inactive>
<form id="payment" class="flex flex-col gap-2" v-on:submit.prevent="save(['payment_method'], 4)">
<div v-for="(method, index) in checkout.payment_methods">
@include('rapidez-ct::checkout.sections.partials.payment.payment-methods')
@include('rapidez-ct::checkout.partials.sections.payment.payment-methods')
</div>
<graphql query="{ checkoutAgreements { agreement_id name checkbox_text content is_html mode } }">
<div v-if="data?.checkoutAgreements?.length" class="mt-5 flex flex-col gap-y-4" slot-scope="{ data }">
Expand All @@ -14,7 +14,7 @@ class="text-ct-primary cursor-pointer text-sm underline"
@{{ agreement.checkbox_text }}
</label>
<template v-else>
@include('rapidez-ct::checkout.sections.partials.payment.agreement-checkbox')
@include('rapidez-ct::checkout.partials.sections.payment.agreement-checkbox')
</template>
<x-rapidez-ct::slideover id="agreement.checkbox_text">
<x-slot name="title">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class="mt-5 grid items-end gap-5 sm:grid-cols-2"
v-model="variables.password"
required
/>
<x-rapidez-ct::button.accent class="self-end justify-self-start" loader>
@lang('Create account')
</x-rapidez-ct::button.accent>
@include('rapidez-ct::checkout.partials.sections.success.create-account-button')
</form>
</graphql-mutation>
</x-rapidez-ct::card.inactive>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<x-rapidez-ct::button.accent class="self-end justify-self-start" loader>
@lang('Create account')
</x-rapidez-ct::button.accent>

0 comments on commit a14e63e

Please sign in to comment.