File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import Feedback from '../Feedback';
20
20
import RepoActions from '../Menu/RepoActions' ;
21
21
import { usePathWithoutHash } from '@/utils/usePathWithoutHash' ;
22
22
import { TableOfContents } from '../TableOfContents' ;
23
+ import { HeadingInterface } from '../TableOfContents/TableOfContents' ;
23
24
24
25
export const LayoutHeader = ( {
25
26
currentPlatform,
@@ -34,7 +35,7 @@ export const LayoutHeader = ({
34
35
pageType ?: 'home' | 'inner' ;
35
36
showLastUpdatedDate : boolean ;
36
37
showTOC ?: boolean ;
37
- tocHeadings ;
38
+ tocHeadings : HeadingInterface [ ] ;
38
39
} ) => {
39
40
const { menuOpen, toggleMenuOpen } = useContext ( LayoutContext ) ;
40
41
const menuButtonRef = useRef < HTMLButtonElement > ( null ) ;
@@ -175,9 +176,8 @@ export const LayoutHeader = ({
175
176
) }
176
177
</ div >
177
178
</ View >
178
- < div className = "" >
179
- { showTOC ? < TableOfContents headers = { tocHeadings } /> : null }
180
- </ div >
179
+ { showTOC ? < TableOfContents headers = { tocHeadings } /> : null }
180
+ < div className = "" > </ div >
181
181
</ View >
182
182
183
183
{ showTOC ? (
You can’t perform that action at this time.
0 commit comments