fix: update click handler structure in VersionHistoryItem for better event handling

This commit is contained in:
Jerald-Golden-B 2025-06-21 14:51:48 +05:30
parent c0bb15e56f
commit 27572f985d
1 changed files with 6 additions and 2 deletions

View File

@ -129,9 +129,13 @@ const VersionHistoryItem: React.FC<VersionHistoryItemProps> = ({ version, onSele
return ( return (
<button <button
className="saved-version" className="saved-version"
onClick={() => onSelect(version)}
> >
<div className="version-name">v {version.version}</div> <div
className="version-name"
onClick={() => onSelect(version)}
>
v {version.version}
</div>
<div className="version-details"> <div className="version-details">
<div className="details"> <div className="details">
<span className="timestamp"> <span className="timestamp">