Skip to content

Commit c380ed5

Browse files
Restructured html to allow better positioning (#26)
1 parent 960ec70 commit c380ed5

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

resources/views/wishlist/button.blade.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
:variables="variables"
66
:callback="wishlistCallback"
77
>
8-
<form slot-scope="{ mutate, mutated }" v-on:submit.prevent="mutate">
9-
<x-rapidez::button type="submit">
10-
<x-heroicon-s-heart v-if="isOnWishlist" class="h-5 w-5" />
11-
<x-heroicon-o-heart v-else class="h-5 w-5" />
12-
</x-rapidez::button>
13-
</form>
8+
<button class="block" slot-scope="{ mutate, mutated }" v-on:click.prevent="mutate">
9+
<x-heroicon-s-heart v-if="isOnWishlist" class="size-5" />
10+
<x-heroicon-o-heart v-else class="size-5 text-muted" />
11+
</button>
1412
</graphql-mutation>
1513
</div>
1614
</wishlist>
1715

18-
<x-rapidez::button v-else :href="route('account.login')">
19-
<x-heroicon-o-heart class="h-5 w-5" />
20-
</x-rapidez::button>
16+
<a v-else href="{{ route('account.login') }}">
17+
<x-heroicon-o-heart class="size-5 text-muted" />
18+
</a>

0 commit comments

Comments
 (0)