File tree Expand file tree Collapse file tree 6 files changed +11
-19
lines changed Expand file tree Collapse file tree 6 files changed +11
-19
lines changed Original file line number Diff line number Diff line change 161
161
</a >
162
162
163
163
@if ($author -> isVerifiedAuthor () )
164
- <span title =" This is a verified author" >
165
- @svg (' heroicon-s-check-badge' , ' w-5 h-5 text-lio-500' )
166
- </span >
164
+ <x-badges .verified />
167
165
@endif
168
166
</span >
169
167
Original file line number Diff line number Diff line change @@ -77,9 +77,7 @@ class="w-full bg-center bg-gray-800"
77
77
</a >
78
78
79
79
@if ($article -> author ()-> isVerifiedAuthor () )
80
- <span title =" This is a verified author" >
81
- @svg (' heroicon-o-check-badge' , ' w-5 h-5 text-white' )
82
- </span >
80
+ <x-badges .verified type =" o" color =" text-white" />
83
81
@endif
84
82
</div >
85
83
@@ -161,9 +159,7 @@ class="prose prose-lg text-gray-800 prose-lio"
161
159
</a >
162
160
163
161
@if ($article -> author ()-> isVerifiedAuthor () )
164
- <span title =" This is a verified author" >
165
- @svg (' heroicon-s-check-badge' , ' w-6 h-6 text-lio-500' )
166
- </span >
162
+ <x-badges .verified color =" text-lio-500" />
167
163
@endif
168
164
</span >
169
165
Original file line number Diff line number Diff line change 28
28
</a >
29
29
30
30
@if ($article -> author ()-> isVerifiedAuthor () )
31
- <span title =" This is a verified author" >
32
- @svg (' heroicon-s-check-badge' , ' w-5 h-5 text-lio-500' )
33
- </span >
31
+ <x-badges .verified />
34
32
@endif
35
33
</div >
36
34
Original file line number Diff line number Diff line change 23
23
<span class =" text-gray-900" >{{ $article -> author ()-> username () } } </span >
24
24
25
25
@if ($article -> author ()-> isVerifiedAuthor () )
26
- <span title =" This is a verified author" >
27
- @svg (' heroicon-s-check-badge' , ' w-5 h-5 text-lio-500' )
28
- </span >
26
+ <x-badges .verified />
29
27
@endif
30
28
</div >
31
29
Original file line number Diff line number Diff line change
1
+ @props ([' type' => ' s' , ' color' => ' text-lio-500' ] )
2
+
3
+ <span title =" This is a verified author" >
4
+ @svg (" heroicon-$type -check-badge" , " w-5 h-5 $color " )
5
+ </span >
Original file line number Diff line number Diff line change @@ -25,11 +25,8 @@ class="w-full bg-center bg-gray-800 h-60 container mx-auto"
25
25
<span class =" border border-lio-500 text-lio-500 rounded-sm px-3 py-1" >
26
26
{{ $user -> isAdmin () ? ' Admin' : ' Moderator' } }
27
27
</span >
28
-
29
28
@elseif ($user -> isVerifiedAuthor () )
30
- <span title =" This is a verified author" >
31
- @svg (' heroicon-s-check-badge' , ' w-5 h-5 text-lio-500' )
32
- </span >
29
+ <x-badges .verified />
33
30
@endif
34
31
</div >
35
32
You can’t perform that action at this time.
0 commit comments