Default non-link creation to custom upload
This commit is contained in:
parent
cd8cd9f308
commit
8d3a1a7e41
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue