style: improve verification button state

This commit is contained in:
Tom Boullay
2026-04-24 17:53:24 +02:00
parent 04ad0b136b
commit 078e687e86
+20 -11
View File
@@ -1,3 +1,5 @@
import { SpinnerIcon } from '@/components/ui/icons'
interface ActionButtonsProps {
isUploading: boolean
isChecking: boolean
@@ -41,17 +43,24 @@ export default function ActionButtons({
</button>
)}
{isBusy && (
<button
onClick={onCancel}
disabled={!isUploading}
className="flex-1 bg-black-700 text-gray-300 font-medium text-sm
py-2.5 px-6 rounded-xl border border-black-600 transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed
hover:bg-black-600"
>
{isChecking ? 'Verification...' : 'Annuler'}
</button>
)}
{isBusy && (
<button
onClick={onCancel}
disabled={!isUploading}
className={`flex-1 font-medium text-sm py-2.5 px-6 rounded-xl border transition-all duration-150
disabled:opacity-50 disabled:cursor-not-allowed ${isChecking
? 'bg-black-800 text-gray-300 border-white/20 shadow-[0_0_0_1px_rgba(255,255,255,0.04)]'
: 'bg-black-700 text-gray-300 border-black-600 hover:bg-black-600'
}`}
>
{isChecking ? (
<span className="flex items-center justify-center gap-2">
<SpinnerIcon className="w-4 h-4 text-gray-400" />
<span>Verification...</span>
</span>
) : 'Annuler'}
</button>
)}
{(allDone || hasErrors) && !isBusy && (
<button