mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
24 lines
522 B
React
24 lines
522 B
React
![]() |
/*
|
||
|
|
||
|
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;
|