1
0
Fork 0

Change to using 'disabled' HTML attribute

This commit is contained in:
Vili Sinervä 2024-01-01 13:57:18 +02:00
parent 2986e42c53
commit 54f189717a

View file

@ -581,15 +581,9 @@ export const Patterns = () => {
{t('patternNew')}
</Link>
</p>
{selCount ? (
<button className="btn btn-error" onClick={removeSelectedPatterns}>
<TrashIcon /> {selCount} {t('patterns')}
</button>
) : (
<button className="btn" onClick={null}>
<TrashIcon /> {selCount} {t('patterns')}
</button>
)}
<button className="btn btn-error" onClick={removeSelectedPatterns} disabled={selCount < 1}>
<TrashIcon /> {selCount} {t('patterns')}
</button>
<TableWrapper>
<table className="table table-auto">
<thead className="border border-base-300 border-b-2 border-t-0 border-x-0">