mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 15:33:22 +00:00
chore: ménage
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { DocusealBuilder as OriginalDocusealBuilder } from '@docuseal/react';
|
||||
|
||||
const DocusealBuilder = ({ onSave, onSend, ...props }) => {
|
||||
useEffect(() => {
|
||||
if (onSave) {
|
||||
props.save = onSave;
|
||||
}
|
||||
if (onSend) {
|
||||
props.send = onSend;
|
||||
}
|
||||
}, [onSave, onSend, props]);
|
||||
|
||||
return <OriginalDocusealBuilder {...props} />;
|
||||
};
|
||||
|
||||
export default DocusealBuilder;
|
||||
Reference in New Issue
Block a user