parent
e000d8384c
commit
13cf5e6872
6 changed files with 5 additions and 19 deletions
|
@ -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.");
|
||||
}
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue