Skip to content

Commit 1a9d20a

Browse files
authored
[9.x] Migrate mail components (#44527)
* allow framework mail component to be used as anonymous components * refactor button component * migrate header * refactor message * reinstate url * BC fix for old component syntax * migrate markdown stub * fix test * refactor text layout * migrate notification * fix attributes
1 parent 98d1e4e commit 1a9d20a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

resources/views/email.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@component('mail::message')
1+
<x-mail::message>
22
{{-- Greeting --}}
33
@if (! empty($greeting))
44
# {{ $greeting }}
@@ -24,9 +24,9 @@
2424
default => 'primary',
2525
};
2626
?>
27-
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
27+
<x-mail::button :url="$actionUrl" :color="$color">
2828
{{ $actionText }}
29-
@endcomponent
29+
</x-mail::button>
3030
@endisset
3131

3232
{{-- Outro Lines --}}
@@ -45,14 +45,14 @@
4545

4646
{{-- Subcopy --}}
4747
@isset($actionText)
48-
@slot('subcopy')
48+
<x-slot:subcopy>
4949
@lang(
5050
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
5151
'into your web browser:',
5252
[
5353
'actionText' => $actionText,
5454
]
5555
) <span class="break-all">[{{ $displayableActionUrl }}]({{ $actionUrl }})</span>
56-
@endslot
56+
</x-slot:subcopy>
5757
@endisset
58-
@endcomponent
58+
</x-mail::message>

0 commit comments

Comments
 (0)