Skip to content

Commit

Permalink
Use the new lazy component
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Apr 13, 2022
1 parent 64effdf commit 85a9932
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"illuminate/database": "^9.0",
"illuminate/support": "^9.0",
"illuminate/view": "^9.0",
"rapidez/core": "~0.54"
"rapidez/core": "~0.56"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions resources/views/form.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<lazy-component>
<lazy>
<graphql v-cloak query='@include('rapidez-reviews::queries.ratingsMetadata')'>
<div v-if="data" slot-scope="{ data }">
<x-rapidez::recaptcha location="product_review"/>
Expand Down Expand Up @@ -32,4 +32,4 @@
</graphql-mutation>
</div>
</graphql>
</lazy-component>
</lazy>
4 changes: 2 additions & 2 deletions resources/views/reviews.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if($reviews_score)
<lazy-component>
<lazy>
<graphql v-cloak query='@include('rapidez-reviews::queries.reviews', @compact('sku'))'>
<div slot-scope="{ data }" v-if="data?.products.items[0].reviews">
<strong class="block text-2xl mt-5">@lang('Customer Reviews')</strong>
Expand All @@ -23,5 +23,5 @@
</div>
</div>
</graphql>
</lazy-component>
</lazy>
@endif

0 comments on commit 85a9932

Please sign in to comment.