1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-23 07:09:44 +02:00

Add dropzone for attachment, paste attachment from clipboard

This commit is contained in:
Maksim Eltyshev 2020-04-28 19:46:55 +05:00
parent e1364925ed
commit 246eb17249
24 changed files with 576 additions and 253 deletions

View file

@ -0,0 +1,15 @@
import { useCallback, useState } from 'react';
export default (initialParams) => {
const [modal, setModal] = useState(() => initialParams);
const open = useCallback((params) => {
setModal(params);
}, []);
const handleClose = useCallback(() => {
setModal(null);
}, []);
return [modal, open, handleClose];
};