Skip to content

Commit 8836a16

Browse files
author
onesine
committed
Remove isActive
1 parent 4c69293 commit 8836a16

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const App = () => {
1616
switch (item.type) {
1717
case "group":
1818
return (
19-
<AccordionItem key={index} isActive={"isActive" in item ? item.isActive : false}>
19+
<AccordionItem key={index}>
2020
<AccordionHeader className={buttonClass} href={"/toto"} as={"a"}>
2121
{({open}) => (
2222
<>

src/constants/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ export const menu = [
22
{
33
type: "group",
44
title: "Group 1",
5-
isActive: true,
65
submenu: [
76
{
87
type: "group",
98
title: "Sub Group 1",
10-
isActive: true,
119
submenu: [
1210
{
1311
type: "image",

0 commit comments

Comments
 (0)