[Utils] Remove copyText (#39)

[Cleanup] Fix imports
This commit is contained in:
Jack 2023-03-20 16:11:27 -04:00 committed by GitHub
parent e000d8384c
commit 13cf5e6872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 19 deletions

View file

@ -1,11 +0,0 @@
import { clipboard } from "@metro/common";
// TODO: Remove/deprecate this, the clipboard module works the same way.
export default function copyText(content: string) {
try {
clipboard.setString(content);
} catch (e) {
throw new Error("Failed to set clipboard content.");
}
}

View file

@ -1,5 +1,4 @@
// Makes mass-importing utils cleaner, chosen over moving utils to one file
export { default as copyText } from "@utils/copyText";
export { default as findInReactTree } from "@utils/findInReactTree";
export { default as findInTree } from "@utils/findInTree";
export { default as safeFetch } from "@utils/safeFetch";