aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/src/components/RightSidebar/TableOfContents.tsx
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2022-07-23 22:25:44 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-07-23 22:25:44 +0000
commit8c0818182208c85032aabf39c4fb71472fa28126 (patch)
tree974d0edff58d88f2447e6e278979914be33f2925 /examples/docs/src/components/RightSidebar/TableOfContents.tsx
parent6e27a5fdc21276cad26cd50e16a2709a40a7cbac (diff)
downloadastro-8c0818182208c85032aabf39c4fb71472fa28126.tar.gz
astro-8c0818182208c85032aabf39c4fb71472fa28126.tar.zst
astro-8c0818182208c85032aabf39c4fb71472fa28126.zip
[ci] format
Diffstat (limited to 'examples/docs/src/components/RightSidebar/TableOfContents.tsx')
-rw-r--r--examples/docs/src/components/RightSidebar/TableOfContents.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/docs/src/components/RightSidebar/TableOfContents.tsx b/examples/docs/src/components/RightSidebar/TableOfContents.tsx
index 1d74e820f..6348bdfd0 100644
--- a/examples/docs/src/components/RightSidebar/TableOfContents.tsx
+++ b/examples/docs/src/components/RightSidebar/TableOfContents.tsx
@@ -3,7 +3,9 @@ import { h, Fragment } from 'preact';
import { useState, useEffect, useRef } from 'preact/hooks';
import { MarkdownHeading } from 'astro';
-const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[] }> = ({ headings = [] }) => {
+const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[] }> = ({
+ headings = [],
+}) => {
const itemOffsets = useRef([]);
const [activeId, setActiveId] = useState<string>(undefined);
useEffect(() => {