1
0
Fork 0

resources/views/components/wowhead.blade.php: Add type property.

This commit is contained in:
Henrik Hautakoski 2021-07-08 13:44:56 +02:00
parent 5b684b08f2
commit 162a4e8556

View file

@ -1,4 +1,4 @@
@props(['id'])
<a {{ $attributes->merge([ 'class' => 'text-blue-600', 'href' => 'https://tbc.wowhead.com/item=' . $id, 'target' => '_blank' ]) }}>
@props(['id', 'type' => 'item'])
<a {{ $attributes->merge([ 'class' => 'text-blue-600', 'href' => sprintf('https://tbc.wowhead.com/%s=%d', $type, $id), 'target' => '_blank' ]) }}>
<x-icon name="external-link" />
</a>