Skip to content

Commit

Permalink
front: fix linked path button clickable if retained simulation
Browse files Browse the repository at this point in the history
Remove the unnecessary div wrapper for the card

Signed-off-by: SharglutDev <[email protected]>
  • Loading branch information
SharglutDev committed Dec 3, 2024
1 parent 83934dc commit 2a3caa1
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ const StdcmLinkedPathSearch = ({
return (
<div className={`stdcm-linked-path-search-container ${className}`}>
{!displayLinkedPathSearch ? (
<div tabIndex={0} role="button" onClick={() => setShowLinkedPathSearch(true)}>
<StdcmDefaultCard
disabled={disabled}
text={defaultCardText}
Icon={cardIcon}
className="add-linked-path"
/>
</div>
<StdcmDefaultCard
disabled={disabled}
text={defaultCardText}
Icon={cardIcon}
className="add-linked-path"
onClick={() => setShowLinkedPathSearch(true)}
/>
) : (
<StdcmCard
disabled={disabled}
Expand Down

0 comments on commit 2a3caa1

Please sign in to comment.