Skip to content

Commit

Permalink
Merge pull request #286 from seqeralabs/DP-679-version-switcher-not-w…
Browse files Browse the repository at this point in the history
…orking-linux

Updating versionSwitcher
  • Loading branch information
ewels authored Nov 25, 2024
2 parents 6a348f4 + b4e5707 commit 64bf313
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/theme/DocSidebar/Desktop/ProductSwitcher/VersionSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,18 @@ const VersionSwitcher = ({ isOpen, setIsOpen }) => {
})}
>
{items?.map((version) => (
<Link
<div
key={version.name}
to={`${version.path}${urlSuffix}`} // Append the suffix to the version path
className={styles.item}
onClick={() => handleSelectVersion(version.name)}
>
v{version.label}{" "}
{version.label === versions[0].label ? " (current)" : ""}
</Link>
<Link
to={`${version.path}${urlSuffix}`} // Append the suffix to the version path
className={styles.item}
>
v{version.label}{" "}
{version.label === versions[0].label ? " (current)" : ""}
</Link>
</div>
))}
</div>
)}
Expand Down

0 comments on commit 64bf313

Please sign in to comment.