From bec190691b2e4d41aae3055253ff9e428243b50d Mon Sep 17 00:00:00 2001 From: Novattz Date: Sat, 17 Jan 2026 17:54:04 +0100 Subject: [PATCH] universal button --- src/components/buttons/ActionButton.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/buttons/ActionButton.tsx b/src/components/buttons/ActionButton.tsx index 6907feb..e5e5f4a 100644 --- a/src/components/buttons/ActionButton.tsx +++ b/src/components/buttons/ActionButton.tsx @@ -3,7 +3,7 @@ import Button, { ButtonVariant } from '../buttons/Button' import { Icon, trash, download } from '@/components/icons' // Define available action types -export type ActionType = 'install_cream' | 'uninstall_cream' | 'install_smoke' | 'uninstall_smoke' +export type ActionType = 'install_cream' | 'uninstall_cream' | 'install_smoke' | 'uninstall_smoke' | 'install_unlocker' interface ActionButtonProps { action: ActionType @@ -18,7 +18,6 @@ interface ActionButtonProps { * Specialized button for game installation actions */ const ActionButton: FC = ({ - action, isInstalled, isWorking, onClick, @@ -29,10 +28,7 @@ const ActionButton: FC = ({ const getButtonText = () => { if (isWorking) return 'Working...' - const isCream = action.includes('cream') - const product = isCream ? 'CreamLinux' : 'SmokeAPI' - - return isInstalled ? `Uninstall ${product}` : `Install ${product}` + return isInstalled ? 'Uninstall' : 'Install' } // Map to button variant