Merge branch 'main' into greg/add_null_support_to_tools
This commit is contained in:
commit
0ae2b7e7fb
2 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ const JsonView = memo(
|
||||||
variant: "destructive",
|
variant: "destructive",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, [toast, normalizedData]);
|
}, [toast, normalizedData, setCopied]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={clsx("p-4 border rounded relative", className)}>
|
<div className={clsx("p-4 border rounded relative", className)}>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ function useCopy({ timeout = 500 }: UseCopyProps = {}) {
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [copied]);
|
}, [copied, timeout]);
|
||||||
|
|
||||||
return { copied, setCopied };
|
return { copied, setCopied };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue