noya-app/noya

Drag and drop file to open

Closed this issue · 0 comments

The user should be able to drag and drop a .sketch file onto the canvas to open that file in Noya. This should replace the current document.

This should be similar to when we open a file via File > Open:

const handleOpen = useCallback(async () => {

We first need to decode the file, then dispatch setFile