Add dropzone for attachment, paste attachment from clipboard

This commit is contained in:
Maksim Eltyshev
2020-04-28 19:46:55 +05:00
parent 693602698b
commit d264382fda
24 changed files with 576 additions and 253 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ const createStep = (type, params = {}) => {
export default (initialType, initialParams) => {
const [step, setStep] = useState(() => createStep(initialType, initialParams));
const openStep = useCallback((type, params) => {
const open = useCallback((type, params) => {
setStep(createStep(type, params));
}, []);
@@ -22,5 +22,5 @@ export default (initialType, initialParams) => {
setStep(null);
}, []);
return [step, openStep, handleBack];
return [step, open, handleBack];
};