summaryrefslogtreecommitdiff
path: root/docs/src/components
diff options
context:
space:
mode:
authorGravatar FredKSchott <FredKSchott@users.noreply.github.com> 2021-07-26 20:42:42 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-07-26 20:42:42 +0000
commitc8896bd02139ecc96227dfd934a236136e153ef0 (patch)
tree3bf38af2ad5d566008ecb29a91f50b8b9a629410 /docs/src/components
parent60a2755c0a93d158fa030ae9883327190b67d190 (diff)
downloadastro-c8896bd02139ecc96227dfd934a236136e153ef0.tar.gz
astro-c8896bd02139ecc96227dfd934a236136e153ef0.tar.zst
astro-c8896bd02139ecc96227dfd934a236136e153ef0.zip
[ci] yarn format
Diffstat (limited to 'docs/src/components')
-rw-r--r--docs/src/components/DocSidebar.tsx2
-rw-r--r--docs/src/components/ThemeToggle.tsx3
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/src/components/DocSidebar.tsx b/docs/src/components/DocSidebar.tsx
index e1b2a2b17..245a1c10b 100644
--- a/docs/src/components/DocSidebar.tsx
+++ b/docs/src/components/DocSidebar.tsx
@@ -105,7 +105,7 @@ const DocSidebar: FunctionalComponent<{ headers: any[]; editHref: string }> = ({
</a>
</li>
</ul>
- <div style={{margin: '2rem 0', textAlign: 'center'}}>
+ <div style={{ margin: '2rem 0', textAlign: 'center' }}>
<ThemeToggle />
</div>
</div>
diff --git a/docs/src/components/ThemeToggle.tsx b/docs/src/components/ThemeToggle.tsx
index e990d8ea4..37b028758 100644
--- a/docs/src/components/ThemeToggle.tsx
+++ b/docs/src/components/ThemeToggle.tsx
@@ -52,7 +52,6 @@ const ThemeToggle: FunctionalComponent = () => {
}
}, [theme]);
-
return (
<div id="theme-toggle">
{themes.map((t, i) => {
@@ -68,7 +67,7 @@ const ThemeToggle: FunctionalComponent = () => {
value={t}
title={`Use ${t} theme`}
aria-label={`Use ${t} theme`}
- onChange={() => {
+ onChange={() => {
localStorage.setItem('theme', t);
setTheme(t);
}}