mirror of
https://github.com/plankanban/planka.git
synced 2025-07-20 21:59:43 +02:00
Add dropzone for attachment, paste attachment from clipboard
This commit is contained in:
parent
693602698b
commit
d264382fda
24 changed files with 576 additions and 253 deletions
|
@ -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];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue