refactor and use require

This commit is contained in:
ammarahm-ed
2021-02-10 21:57:08 +05:00
parent 78e1a5f64e
commit 693240d86e
23 changed files with 212 additions and 142 deletions

View File

@@ -36,6 +36,7 @@ const MoveNoteDialog = () => {
const [, dispatch] = useTracked();
const [visible, setVisible] = useState(false);
const [note, setNote] = useState(null);
function open(note) {
setNote(note);
setVisible(true);