修复登录按钮颜色
This commit is contained in:
@@ -189,9 +189,12 @@ export const LoginModal = ({ onClose, onLoginSuccess }: LoginModalProps) => {
|
||||
<Button
|
||||
onClick={handleLogin}
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user