Skip to content

Commit

Permalink
feat(topics): add secondary image cropper
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Dec 3, 2024
1 parent 752947e commit 617c05d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/js/AdminEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const validateMarkdownLinks = async (input) => {
return true;
}

const AdminEditor = ({title, data, close, catMenu, pictureUploader, updateData, savingStatus,
const AdminEditor = ({title, data, close, catMenu, pictureUploader, secondaryPictureCropper, updateData, savingStatus,
validate, deleteObj, items = [], isNew = true,
extras = [], path = []}) => {
const [validatingLinks, setValidatingLinks] = useState(false);
Expand Down Expand Up @@ -213,6 +213,8 @@ const AdminEditor = ({title, data, close, catMenu, pictureUploader, updateData,
return catMenu;
} else if (x === "Picture Uploader") {
return pictureUploader;
} else if (x === "Secondary Picture Cropper") {
return secondaryPictureCropper;
}
else {
return item({...options_for_form[x]});
Expand Down

0 comments on commit 617c05d

Please sign in to comment.