14 lines
607 B
Python
14 lines
607 B
Python
from nicegui import ui
|
|
from typing import Callable, cast
|
|
|
|
|
|
def calendar_view(on_select: Callable[[str | None], None]) -> None:
|
|
with ui.card().classes("bg-gray-800 text-white w-full journal-calendar-card"):
|
|
with ui.row().classes("w-full items-center px-3"):
|
|
_ = ui.label("Journal Calendar").classes("text-lg font-bold")
|
|
with ui.row().classes("w-full items-center px-3"):
|
|
# Calendar view
|
|
_ = ui.date(
|
|
on_change=lambda e: on_select(cast(str | None, e.value))
|
|
).props("dark").classes("bg-gray-800 text-white journal-calendar")
|