@@ -64,76 +64,78 @@ const TOC = () => {
64
64
</ li >
65
65
< li >
66
66
< div >
67
- < li
67
+ < div
68
68
className = "toc-sub-heading identity"
69
69
onClick = { ( ) => setExpandIdentity ( ( prev ) => ! prev ) }
70
70
>
71
71
Identity
72
72
{ expandIdenity ? < IoIosArrowUp /> : < IoIosArrowDown /> }
73
- </ li >
73
+ </ div >
74
74
{ expandIdenity && (
75
75
< div className = "identity-sublinks" >
76
- < li >
77
- < Link
78
- to = "/projects/sistent/identity/color"
79
- className = { `toc-sub-heading toc-sub-inline identity-item ${
80
- location . pathname . includes (
81
- "/projects/sistent/identity/color"
82
- )
83
- ? "active"
84
- : ""
85
- } `}
86
- activeClassName = "active"
87
- >
88
- Color
89
- </ Link >
90
- </ li >
91
- < li >
92
- < Link
93
- to = "/projects/sistent/identity/spacing"
94
- className = { `toc-sub-heading toc-sub-inline identity-item ${
95
- location . pathname . includes (
96
- "/projects/sistent/identity/spacing"
97
- )
98
- ? "active"
99
- : ""
100
- } `}
101
- activeClassName = "active"
102
- >
103
- Spacing
104
- </ Link >
105
- </ li >
106
- < li >
107
- < Link
108
- to = "/projects/sistent/identity/typography"
109
- className = { `toc-sub-heading toc-sub-inline identity-item ${
110
- location . pathname . includes (
111
- "/projects/sistent/identity/typography"
112
- )
113
- ? "active"
114
- : ""
115
- } `}
116
- activeClassName = "active"
117
- >
118
- Typography
119
- </ Link >
120
- </ li >
76
+ < ul className = "toc-ul" >
77
+ < li >
78
+ < Link
79
+ to = "/projects/sistent/identity/color"
80
+ className = { `toc-sub-heading toc-sub-inline identity-item ${
81
+ location . pathname . includes (
82
+ "/projects/sistent/identity/color"
83
+ )
84
+ ? "active"
85
+ : ""
86
+ } `}
87
+ activeClassName = "active"
88
+ >
89
+ Color
90
+ </ Link >
91
+ </ li >
92
+ < li >
93
+ < Link
94
+ to = "/projects/sistent/identity/spacing"
95
+ className = { `toc-sub-heading toc-sub-inline identity-item ${
96
+ location . pathname . includes (
97
+ "/projects/sistent/identity/spacing"
98
+ )
99
+ ? "active"
100
+ : ""
101
+ } `}
102
+ activeClassName = "active"
103
+ >
104
+ Spacing
105
+ </ Link >
106
+ </ li >
107
+ < li >
108
+ < Link
109
+ to = "/projects/sistent/identity/typography"
110
+ className = { `toc-sub-heading toc-sub-inline identity-item ${
111
+ location . pathname . includes (
112
+ "/projects/sistent/identity/typography"
113
+ )
114
+ ? "active"
115
+ : ""
116
+ } `}
117
+ activeClassName = "active"
118
+ >
119
+ Typography
120
+ </ Link >
121
+ </ li >
122
+ </ ul >
121
123
</ div >
122
124
) }
123
125
</ div >
124
126
</ li >
125
127
< li >
126
128
< div >
127
- < li
129
+ < div
128
130
className = "toc-sub-heading components"
129
131
onClick = { ( ) => setExpandComponent ( ( prev ) => ! prev ) }
130
132
>
131
133
Components
132
134
{ expandComponent ? < IoIosArrowUp /> : < IoIosArrowDown /> }
133
- </ li >
135
+ </ div >
134
136
{ expandComponent && (
135
137
< div className = "components-sublinks" >
136
- < li >
138
+ < ul className = "toc-ul" >
137
139
{ sortedComponentArray . map ( ( component ) => (
138
140
< li key = { component . id } >
139
141
< Link
@@ -149,7 +151,7 @@ const TOC = () => {
149
151
</ Link >
150
152
</ li >
151
153
) ) }
152
- </ li >
154
+ </ ul >
153
155
</ div >
154
156
) }
155
157
</ div >
0 commit comments