This commit is contained in:
lubiana 2025-07-12 20:15:01 +02:00
parent becdd80716
commit 9e0b3096ff
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -41,7 +41,7 @@ const GubbleStore: React.FC<GubbleStoreProps> = ({ isOpen, onClose, gubblePoints
<div className="text-gray-300 text-sm">Cost: <span className="font-mono">{upg.cost}</span></div>
</div>
<button
className={`mt-2 sm:mt-0 px-4 py-1 rounded font-bold text-white ${upgrades[upg.key] ? 'bg-gray-700 cursor-not-allowed' : gubblePoints < upg.cost ? 'bg-yellow-900 cursor-not-allowed' : 'bg-blue-700 hover:bg-blue-800'}`}
className={`mt-2 sm:mt-0 px-4 py-1 rounded font-bold text-white ${upgrades[upg.key] ? 'bg-green-300 cursor-not-allowed' : gubblePoints < upg.cost ? 'bg-red-500 cursor-not-allowed' : 'bg-blue-700 hover:bg-blue-800'}`}
disabled={upgrades[upg.key] || gubblePoints < upg.cost}
onClick={() => onBuyUpgrade(upg.key, upg.cost)}
>