Entitlement for v8/Deno

This commit is contained in:
Gregory Schier committed 2024-06-12 00:23:32 -07:00
1 parent 6c5a914db6
commit 57f01d249e
5 files changed
+19 -13

No files matched your search

+7 -5
View File
@@ -18,11 +18,13 @@ export function useClipboardText() {
const setText = useCallback(
(text: string) => {
writeText(text).catch(console.error);
toast.show({
id: 'copied',
variant: 'copied',
message: 'Copied to clipboard',
});
if (text != '') {
toast.show({
id: 'copied',
variant: 'copied',
message: 'Copied to clipboard',
});
}
setValue(text);
},
[setValue, toast],