From 8d3a1a7e415a7ede2ba21a2f90b30808f00ad70d Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 2 Jan 2026 12:44:14 -0500 Subject: [PATCH] Default non-link creation to custom upload --- src/components/Map/MapView.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Map/MapView.jsx b/src/components/Map/MapView.jsx index 6949bc7..c865d80 100644 --- a/src/components/Map/MapView.jsx +++ b/src/components/Map/MapView.jsx @@ -304,7 +304,7 @@ export default function MapView({ LINK_PREVIEW_PLACEHOLDER ); const [draftMediaUrls, setDraftMediaUrls] = useState([]); - const [useCustomImage, setUseCustomImage] = useState(false); + const [useCustomImage, setUseCustomImage] = useState(contentMode !== "link"); const [postVisibility, setPostVisibility] = useState("public"); const [postGroupId, setPostGroupId] = useState(""); const [postUsers, setPostUsers] = useState(""); @@ -1069,6 +1069,10 @@ export default function MapView({ setModeChosen(false); }; + useEffect(() => { + setUseCustomImage(contentMode !== "link"); + }, [contentMode]); + const handleSearchSubmit = (e) => { e.preventDefault(); };