Refactor category button to use div for improved semantic structure; enhance accessibility and interaction
This commit is contained in:
parent
5d995b0a29
commit
a937928b51
|
@ -230,7 +230,7 @@ const Assets: React.FC = () => {
|
|||
(asset) => asset.category === category
|
||||
);
|
||||
return (
|
||||
<button
|
||||
<div
|
||||
key={`${index}-${category}`}
|
||||
className="category"
|
||||
id={category}
|
||||
|
@ -243,7 +243,7 @@ const Assets: React.FC = () => {
|
|||
draggable={false}
|
||||
/>
|
||||
<div className="category-name">{category}</div>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue