Skip to content

Commit

Permalink
Merge pull request #90 from shuhaib-aot/nav-margin-and-heiglight
Browse files Browse the repository at this point in the history
fixed active tab of form when select bundle and fixed margin of langu…
  • Loading branch information
shuhaib-aot authored Nov 13, 2023
2 parents 52d22f0 + 194dea1 commit 1da7976
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions forms-flow-nav/src/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const NavBar = React.memo(({ props }) => {
as={Link}
to={`${baseUrl}form`}
className={`nav-menu-item py-md-3 px-0 mx-2 ${
pathname.match(createURLPathMatchExp("form", baseUrl))
( pathname.match(createURLPathMatchExp("form", baseUrl)) || pathname.match(createURLPathMatchExp("bundle", baseUrl)))
? "active"
: ""
}`}
Expand Down Expand Up @@ -308,10 +308,10 @@ const NavBar = React.memo(({ props }) => {
{selectLanguages.length === 1 ? (
selectLanguages.map((e, i) => {
return (
<>
<div className="mr-2">
<i className="fa fa-globe mr-2" />
{e.name}
</>
</div>
);
})
) : (
Expand All @@ -323,6 +323,7 @@ const NavBar = React.memo(({ props }) => {
{lang ? lang : "LANGUAGE"}
</>
}
className="mr-2"
id="basic-nav-dropdown"
>
{selectLanguages.map((e, index) => (
Expand Down

0 comments on commit 1da7976

Please sign in to comment.