From ee7931f41f2ab29ef402adf54e87d559435d3807 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Wed, 22 Jan 2025 16:00:18 +0100 Subject: [PATCH] address comments --- reflex/components/next/image.py | 11 ++++++++++- reflex/event.py | 8 ++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/reflex/components/next/image.py b/reflex/components/next/image.py index 066565d85..00821ddaf 100644 --- a/reflex/components/next/image.py +++ b/reflex/components/next/image.py @@ -3,7 +3,7 @@ from typing import Any, Literal, Optional, Union from reflex.event import EventHandler, no_args_event_spec -from reflex.utils import types +from reflex.utils import console, types from reflex.vars.base import Var from .base import NextComponent @@ -82,6 +82,15 @@ class Image(NextComponent): Returns: _type_: _description_ """ + if "blurDataURL" in props: + console.deprecate( + feature_name="blurDataURL", + reason="Use blur_data_url instead", + deprecation_version="0.7.0", + removal_version="0.8.0", + ) + props["blur_data_url"] = props.pop("blurDataURL") + style = props.get("style", {}) def check_prop_type(prop_name, prop_value): diff --git a/reflex/event.py b/reflex/event.py index 19f1cd821..249d0f489 100644 --- a/reflex/event.py +++ b/reflex/event.py @@ -560,10 +560,10 @@ class JavasciptKeyboardEvent: """Interface for a Javascript KeyboardEvent https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.""" key: str = "" - alt_key: bool = False - ctrl_key: bool = False - meta_key: bool = False - shift_key: bool = False + altKey: bool = False # noqa: N815 + ctrlKey: bool = False # noqa: N815 + metaKey: bool = False # noqa: N815 + shiftKey: bool = False # noqa: N815 def input_event(e: Var[JavascriptInputEvent]) -> Tuple[Var[str]]: