This commit is contained in:
Adrian Hopek 2022-02-21 15:34:31 +01:00
parent 7e2761b6bf
commit 0dfb28d0b3

View File

@ -29,7 +29,7 @@
<MenuButton <MenuButton
class="inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blumilk-500" class="inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blumilk-500"
> >
{{ selectedMonth.name }} {{ selectedMonth.name }} {{ years.current }}
<ChevronDownIcon class="-mr-1 ml-2 h-5 w-5" /> <ChevronDownIcon class="-mr-1 ml-2 h-5 w-5" />
</MenuButton> </MenuButton>
</div> </div>
@ -160,6 +160,10 @@ export default {
type: String, type: String,
default: () => 'january', default: () => 'january',
}, },
years: {
type: Object,
default: () => null,
},
}, },
setup(props) { setup(props) {
const {getMonths, findMonth} = useMonthInfo() const {getMonths, findMonth} = useMonthInfo()