summaryrefslogtreecommitdiff
path: root/src/components/SmartClipboardButton.tsx
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-10-21 23:54:40 -0400
committerGitHub <noreply@github.com>2025-10-21 23:54:40 -0400
commit4dae7ed1c8d8c5acdc115ee3cbc9fecae622b0cc (patch)
tree58db3626b3678546e5cb1c4de9bcfc627fde46c7 /src/components/SmartClipboardButton.tsx
parent0742fbac1c6c27af1e11aec6e5231d2dc70e78ff (diff)
parent53ff3cf75dc903ff1cc82bce9d11e2eaf13f4d81 (diff)
downloaddecky-lsfg-vk-4dae7ed1c8d8c5acdc115ee3cbc9fecae622b0cc.tar.gz
decky-lsfg-vk-4dae7ed1c8d8c5acdc115ee3cbc9fecae622b0cc.zip
Merge pull request #190 from xXJSONDeruloXx/cleanup-misc
More cleanup
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",