diff --git a/common/components/domain.py b/common/components/domain.py index 68fa94b..ce21b36 100644 --- a/common/components/domain.py +++ b/common/components/domain.py @@ -229,7 +229,7 @@ _SELECTOR_OPTION_CLASS = ( def GameStatusSelector(game, game_statuses, csrf_token: str) -> Node: """Light-DOM custom element; behavior in ts/elements/game-status-selector.ts.""" from common.components.core import Element - from common.components.custom_elements import _GameStatusSelector, GameStatusSelectorProps + from common.components.custom_elements import _GameStatusSelector from common.components.primitives import Li, Ul options = [ @@ -273,7 +273,7 @@ def GameStatusSelector(game, game_statuses, csrf_token: str) -> Node: def SessionDeviceSelector(session, session_devices, csrf_token: str) -> Node: """Light-DOM custom element; behavior in ts/elements/session-device-selector.ts.""" from common.components.core import Element - from common.components.custom_elements import _SessionDeviceSelector, SessionDeviceSelectorProps + from common.components.custom_elements import _SessionDeviceSelector from common.components.primitives import Li, Ul current_name = session.device.name if session.device else "Unknown" diff --git a/common/layout.py b/common/layout.py index 8328710..7e3f63d 100644 --- a/common/layout.py +++ b/common/layout.py @@ -187,7 +187,9 @@ def _main_script(mastered: bool) -> str: return _MAIN_SCRIPT_A + ("true" if mastered else "false") + _MAIN_SCRIPT_B -def Navbar(*, today_played: str, last_7_played: str, current_year: int, csrf_token: str) -> "Node": +def Navbar( + *, today_played: str, last_7_played: str, current_year: int, csrf_token: str +) -> "Node": """Top navigation bar. Static chrome, so it's a single ``Safe`` node wrapping its markup rather