Skip to content

Commit 0d95e7d

Browse files
author
katiegoines
committed
add type and moving empty div
1 parent 7f43462 commit 0d95e7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Layout/LayoutHeader.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Feedback from '../Feedback';
2020
import RepoActions from '../Menu/RepoActions';
2121
import { usePathWithoutHash } from '@/utils/usePathWithoutHash';
2222
import { TableOfContents } from '../TableOfContents';
23+
import { HeadingInterface } from '../TableOfContents/TableOfContents';
2324

2425
export const LayoutHeader = ({
2526
currentPlatform,
@@ -34,7 +35,7 @@ export const LayoutHeader = ({
3435
pageType?: 'home' | 'inner';
3536
showLastUpdatedDate: boolean;
3637
showTOC?: boolean;
37-
tocHeadings;
38+
tocHeadings: HeadingInterface[];
3839
}) => {
3940
const { menuOpen, toggleMenuOpen } = useContext(LayoutContext);
4041
const menuButtonRef = useRef<HTMLButtonElement>(null);
@@ -175,9 +176,8 @@ export const LayoutHeader = ({
175176
)}
176177
</div>
177178
</View>
178-
<div className="">
179-
{showTOC ? <TableOfContents headers={tocHeadings} /> : null}
180-
</div>
179+
{showTOC ? <TableOfContents headers={tocHeadings} /> : null}
180+
<div className=""></div>
181181
</View>
182182

183183
{showTOC ? (

0 commit comments

Comments
 (0)