mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-11-28 01:06:38 +08:00
Remove dependencies (#666)
This commit is contained in:
@@ -77,14 +77,14 @@ export default function Share({ title, setModal }) {
|
||||
await patch(gistId, SHARE_FILENAME, diagramToString());
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
setError(e);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
updateOrGenerateLink();
|
||||
}, [gistId, diagramToString, setGistId]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
const copyLink = () => {
|
||||
navigator.clipboard
|
||||
|
||||
Reference in New Issue
Block a user