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
commit7e6d29d9cb731d2648399282be87adb98e183084 (patch)
tree58db3626b3678546e5cb1c4de9bcfc627fde46c7 /src/components/SmartClipboardButton.tsx
parent7b5f3cb8b3d17ad125d2f40a58fbba80e863d703 (diff)
parent192716ecfd85199f2d5704314eb7873635d190e9 (diff)
downloaddecky-lsfg-vk-7e6d29d9cb731d2648399282be87adb98e183084.tar.gz
decky-lsfg-vk-7e6d29d9cb731d2648399282be87adb98e183084.zip
Merge pull request #190 from xXJSONDeruloXx/cleanup-miscv0.12.1
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",