Skip to content

Commit

Permalink
Merge pull request #7983 from atharva3333/master
Browse files Browse the repository at this point in the history
Improve UX in ballerina by example website
  • Loading branch information
sm1990 committed Oct 4, 2023
2 parents 3b64d78 + 6a01e9e commit c71f0a0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/common/left-nav/LeftNavYaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import React, { useState, useEffect } from "react";
import Link from "next/link";
import Accordion from "react-bootstrap/Accordion";
import { prefix } from "../../../utils/prefix";
import styles from "./LeftNav.module.css";
Expand Down Expand Up @@ -95,7 +96,7 @@ export default function LeftNavYaml({ navContent, bbe = null, viewer = null }) {
</>
) : (
<li key={directory.id}>
<a
<Link
id={directory.id}
className={bbe === directory.url ? styles.active : null}
href={
Expand All @@ -104,8 +105,10 @@ export default function LeftNavYaml({ navContent, bbe = null, viewer = null }) {
: `/learn/by-example/${directory.url}`
}
>
{directory.title}
</a>
<a className={bbe === directory.url ? styles.active : null}>
{directory.title}
</a>
</Link>
</li>
)}
</>
Expand Down

0 comments on commit c71f0a0

Please sign in to comment.