修复登录按钮颜色

This commit is contained in:
xianyi
2025-12-26 10:42:38 +08:00
parent fca3b3fa81
commit 959c7c467a

View File

@@ -189,9 +189,12 @@ export const LoginModal = ({ onClose, onLoginSuccess }: LoginModalProps) => {
<Button <Button
onClick={handleLogin} onClick={handleLogin}
disabled={!canLogin} disabled={!canLogin}
className={`w-full font-bold text-white justify-center ${!canLogin ? 'opacity-50 cursor-not-allowed' : 'bg-gray-900 hover:bg-gray-800'}`} className={`w-full font-bold justify-center ${!canLogin ? 'opacity-50 cursor-not-allowed' : 'bg-gray-900 hover:bg-gray-800'}`}
> >
{loading ? '登录中…' : '登录'} {loading ? <span className='text-white font-bold'>...</span> : (
canLogin ? <span className='text-white font-bold'></span> : <span className='text-black font-bold'></span>
)}
</Button> </Button>
</div> </div>
</div> </div>