Skip to content

Commit 1d3d095

Browse files
committed
Update todo comments
1 parent 602be6b commit 1d3d095

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/reactpy_django/forms/components.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
)
3333

3434

35-
# TODO: Create types for AsyncFormEvent and FormEvent
3635
@component
3736
def _django_form(
3837
form: type[Form | ModelForm],

src/reactpy_django/forms/transforms.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO: Almost everything in this module should be moved to `reactpy.utils._mutate_vdom()`.
12
from __future__ import annotations
23

34
from typing import TYPE_CHECKING, Any
@@ -7,8 +8,6 @@
78
if TYPE_CHECKING:
89
from reactpy.core.types import VdomDict
910

10-
# TODO: Move all this logic to `reactpy.utils._mutate_vdom()` and remove this file.
11-
1211

1312
def convert_html_props_to_reactjs(vdom_tree: VdomDict) -> VdomDict:
1413
"""Transformation that standardizes the prop names to be used in the component."""
@@ -114,7 +113,8 @@ def _do_nothing_event(*args, **kwargs):
114113
"""A placeholder event function that does nothing."""
115114

116115

117-
# TODO: Create some kind of script that will generate the react docs copy-pasta during build time, rather than hardcoding it.
116+
# TODO: After the bulk of this file to ReactPy core, we should create some kind of script that will
117+
# auto-generate this into a file dump. The current implementation of manually copy-pasting it isn't ideal.
118118
# https://react.dev/reference/react-dom/components/common#common-props
119119
SPECIAL_PROPS = r"""
120120
children: A React node (an element, a string, a number, a portal, an empty node like null, undefined and booleans, or an array of other React nodes). Specifies the content inside the component. When you use JSX, you will usually specify the children prop implicitly by nesting tags like <div><span /></div>.

0 commit comments

Comments
 (0)