summaryrefslogtreecommitdiff
path: root/src/components/SmartClipboardButton.tsx
diff options
context:
space:
mode:
authorxXJsonDeruloXx <danielhimebauch@gmail.com>2025-10-21 21:45:14 -0400
committerxXJsonDeruloXx <danielhimebauch@gmail.com>2025-10-21 21:45:14 -0400
commitf32c8760d15bf4713b3f9af1384219a44322febd (patch)
tree7d6d85cc39f193b92bc2fd63dd63675aa46a32be /src/components/SmartClipboardButton.tsx
parent7b5f3cb8b3d17ad125d2f40a58fbba80e863d703 (diff)
downloaddecky-lsfg-vk-f32c8760d15bf4713b3f9af1384219a44322febd.tar.gz
decky-lsfg-vk-f32c8760d15bf4713b3f9af1384219a44322febd.zip
rm old comments
Diffstat (limited to 'src/components/SmartClipboardButton.tsx')
-rw-r--r--src/components/SmartClipboardButton.tsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/SmartClipboardButton.tsx b/src/components/SmartClipboardButton.tsx
index 7be3b2f..c90515a 100644
--- a/src/components/SmartClipboardButton.tsx
+++ b/src/components/SmartClipboardButton.tsx
@@ -9,7 +9,6 @@ export function SmartClipboardButton() {
const [isLoading, setIsLoading] = useState(false);
const [showSuccess, setShowSuccess] = useState(false);
- // Reset success state after 3 seconds
useEffect(() => {
if (showSuccess) {
const timer = setTimeout(() => {
@@ -38,10 +37,8 @@ export function SmartClipboardButton() {
const { success, verified } = await copyWithVerification(text);
if (success) {
- // Show success feedback in the button instead of toast
setShowSuccess(true);
if (!verified) {
- // Copy worked but verification failed - still show success
console.log('Copy verification failed but copy likely worked');
}
} else {
@@ -64,9 +61,7 @@ export function SmartClipboardButton() {
>
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
{showSuccess ? (
- <FaCheck style={{
- color: "#4CAF50" // Green color for success
- }} />
+ <FaCheck style={{ color: "#4CAF50" }} />
) : isLoading ? (
<FaClipboard style={{
animation: "pulse 1s ease-in-out infinite",