Skip to content

Commit 9ee2747

Browse files
author
Itamar Junior
committed
fix: update viewMode value from 'monthly' to 'month' for consistency
1 parent f78a49d commit 9ee2747

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/livewire/company/budget-calendar.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</h1>
99
<div class="flex items-center">
1010

11-
@if ($viewMode === 'monthly')
11+
@if ($viewMode === 'month')
1212
<div class="relative flex items-center rounded-md bg-white shadow-sm md:items-stretch">
1313
<button type="button" wire:click="goToPreviousMonth"
1414
class="flex h-9 w-12 items-center justify-center rounded-l-md border-y border-l border-gray-300 pr-1 text-gray-400 hover:text-gray-500 focus:relative md:w-9 md:pr-0 md:hover:bg-gray-50">
@@ -75,7 +75,7 @@ class="flex items-center gap-x-1.5 rounded-md bg-white px-3 py-2 text-sm font-se
7575
<div class="block px-4 py-2 text-sm text-gray-700 cursor-pointer
7676
{{ $viewMode == 'month' ? 'bg-gray-100 text-gray-900 outline-none' : '' }}"
7777
role="menuitem" tabindex="-1" id="menu-item-2"
78-
@click="$wire.set('viewMode', 'monthly')">Month</a>
78+
@click="$wire.set('viewMode', 'month')">Month</a>
7979
</div>
8080
<div class="block px-4 py-2 text-sm text-gray-700 cursor-pointer
8181
{{ $viewMode == 'year' ? 'bg-gray-100 text-gray-900 outline-none' : '' }}"
@@ -192,7 +192,7 @@ class="absolute top-2 right-2 text-gray-400 hover:text-gray-600">
192192
</div>
193193
@endif
194194

195-
@if ($viewMode === 'monthly')
195+
@if ($viewMode === 'month')
196196
@php
197197
$currentMonthStart = $currentDate->copy()->startOfMonth()->toDateString();
198198
$currentMonthEnd = $currentDate->copy()->endOfMonth()->toDateString();

0 commit comments

Comments
 (0)