Upload modals: comment why content is invoked inline

This commit is contained in:
Tanish Manku
2026-05-01 22:37:54 -07:00
parent 2a4f849940
commit 7cc3f2576f
5 changed files with 5 additions and 0 deletions
@@ -165,6 +165,7 @@ export function UploadModal3D(props: Props) {
className="max-w-xl"
showClose={true}
>
{/* Inline call — `<Comp />` would be a fresh component reference each render and remount the subtree. */}
{UploaderModalContent()}
</Modal>
);
@@ -129,6 +129,7 @@ export function UploadModalImage(props: Props) {
className="max-w-xl"
showClose={true}
>
{/* Inline call — `<Comp />` would be a fresh component reference each render and remount the subtree. */}
{UploaderModalContent()}
</Modal>
);
@@ -113,6 +113,7 @@ export function UploadImageMediaModal({
return (
<Modal isOpen={isOpen} onClose={onClose} title={title}>
{/* Inline call — `<Comp />` would be a fresh component reference each render and remount the subtree. */}
{UploaderModalContent()}
</Modal>
);
@@ -100,6 +100,7 @@ export function UploadModalMedia({
return (
<Modal isOpen={isOpen} onClose={onClose} title={title}>
{/* Inline call — `<Comp />` would be a fresh component reference each render and remount the subtree. */}
{UploaderModalContent()}
</Modal>
);
@@ -137,6 +137,7 @@ export function UploadModalSplat(props: Props) {
className="max-w-xl"
showClose={true}
>
{/* Inline call — `<Comp />` would be a fresh component reference each render and remount the subtree. */}
{UploaderModalContent()}
</Modal>
);