From f32c8760d15bf4713b3f9af1384219a44322febd Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Tue, 21 Oct 2025 21:45:14 -0400 Subject: rm old comments --- src/components/Content.tsx | 14 -------------- src/components/SmartClipboardButton.tsx | 7 +------ 2 files changed, 1 insertion(+), 20 deletions(-) (limited to 'src/components') diff --git a/src/components/Content.tsx b/src/components/Content.tsx index 28eefa7..3dc2696 100644 --- a/src/components/Content.tsx +++ b/src/components/Content.tsx @@ -39,25 +39,20 @@ export function Content() { const { isInstalling, isUninstalling, handleInstall, handleUninstall } = useInstallationActions(); - // Reload config when installation status changes useEffect(() => { if (isInstalled) { loadLsfgConfig(); } }, [isInstalled, loadLsfgConfig]); - // Generic configuration change handler const handleConfigChange = async (fieldName: keyof ConfigurationData, value: boolean | number | string) => { - // If we have a current profile, update that profile specifically if (currentProfile) { const newConfig = { ...config, [fieldName]: value }; const result = await updateProfileConfig(currentProfile, newConfig); if (result.success) { - // Reload config to reflect the changes from the backend await loadLsfgConfig(); } } else { - // Fallback to the original method for backward compatibility await updateField(fieldName, value); } }; @@ -80,7 +75,6 @@ export function Content() { return ( - {/* Show installation components at top when not fully installed */} {!isInstalled && ( <> )} - {/* FPS multiplier controls stay above profile selection when installed */} {isInstalled && ( <> @@ -126,7 +119,6 @@ export function Content() { )} - {/* Profile Management - only show if installed */} {isInstalled && ( )} - {/* Configuration Section - only show if installed */} {isInstalled && ( )} - {/* Clipboard buttons sit beside usage info for quick access */} {isInstalled && ( <> @@ -153,10 +143,8 @@ export function Content() { )} - {/* Usage instructions - always visible for user guidance */} - {/* Nerd Stuff Button */} - {/* Flatpaks Button */} - {/* Status and uninstall sit at bottom when installed to match desired layout */} {isInstalled && ( <> { 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() { >
{showSuccess ? ( - + ) : isLoading ? (