fix active states on side menu

This commit is contained in:
Jonathan Summers-Muir
2022-11-24 17:00:39 +08:00
parent f62c0858f4
commit 74bbfd0f97
9 changed files with 307 additions and 17 deletions

View File

@@ -94,7 +94,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
<IconChevronLeft size={10} strokeWidth={3} />
</div>
</div>
<span>Main Menu</span>
<span>Back to reference</span>
</a>
</Link>
<div className="flex items-center gap-3 my-3">
@@ -114,7 +114,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
{clientLibsCommon.functions
.filter((x) => x.product === 'database')
.map((x, index) => {
console.log(functions)
// console.log(functions)
return (
<>
<FunctionLink {...x} />
@@ -128,7 +128,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
{clientLibsCommon.functions
.filter((x) => x.product === 'auth')
.map((x, index) => {
console.log(functions)
// console.log(functions)
return (
<>
<FunctionLink {...x} />
@@ -140,7 +140,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
{clientLibsCommon.functions
.filter((x) => x.product === 'storage')
.map((x, index) => {
console.log(functions)
// console.log(functions)
return (
<>
<FunctionLink {...x} />
@@ -152,7 +152,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
{clientLibsCommon.functions
.filter((x) => x.product === 'realtime')
.map((x, index) => {
console.log(functions)
// console.log(functions)
return (
<>
<FunctionLink {...x} />
@@ -164,7 +164,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
{clientLibsCommon.functions
.filter((x) => x.product === 'functions')
.map((x, index) => {
console.log(functions)
// console.log(functions)
return (
<>
<FunctionLink {...x} />