Skip to content

Commit a238619

Browse files
committed
refactor: Remove size prop from Logo component
1 parent c6853bf commit a238619

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/View/Components/Logo.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class Logo extends Component
1212
* Create a new component instance.
1313
*/
1414
public function __construct(
15-
public string $size = '6'
1615
) {}
1716

1817
/**
@@ -21,7 +20,7 @@ public function __construct(
2120
public function render(): View|Closure|string
2221
{
2322
return <<<'blade'
24-
<div class="size-{{ $size }}">
23+
<div class="size-6">
2524
<img src="{{ asset('jata.png') }}" alt="Jata">
2625
</div>
2726
blade;

resources/views/components/navigation.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="pb-4 flex items-center gap-2 mb-4">
22
<a wire:navigate href="{{ route('dashboard') }}" class="flex items-center gap-2 text-md">
3-
<x-logo size="6" /></a>
3+
<x-logo /></a>
44
<div class="flex-1"></div>
55
<x-aside />
66
<div class="flex-1">

0 commit comments

Comments
 (0)