mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
24 lines
No EOL
522 B
JavaScript
24 lines
No EOL
522 B
JavaScript
/*
|
|
|
|
A component to configure the "edit pic" form.
|
|
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Components, registerComponent, getFragment } from "meteor/vulcan:core";
|
|
|
|
import Pics from '../../modules/pics/collection.js';
|
|
|
|
const PicsEditForm = ({documentId, closeModal}) =>
|
|
|
|
<Components.SmartForm
|
|
collection={Pics}
|
|
documentId={documentId}
|
|
mutationFragment={getFragment('PicsDetailsFragment')}
|
|
showRemove={true}
|
|
successCallback={document => {
|
|
closeModal();
|
|
}}
|
|
/>
|
|
|
|
export default PicsEditForm; |