Simplify arrow function syntax and remove unnecessary whitespace across composable utilities

This commit is contained in:
2026-01-28 19:50:05 +00:00
parent 07c4379d81
commit 1ad9389318
4 changed files with 11 additions and 11 deletions

View File

@@ -18,14 +18,14 @@ export function useClipboard() {
* @param {string} text - Text to copy
* @returns {Promise<boolean>} Success status
*/
const copyToClipboard = async (text) => {
const copyToClipboard = async text => {
error.value = null;
copied.value = false;
try {
await navigator.clipboard.writeText(text);
copied.value = true;
// Reset after 2 seconds
setTimeout(() => {
copied.value = false;