chore: format theme files
Luke Karrys committed
Sep 24, 2023 at 12:41 UTC
4e614d4cc9aa1dc78610c3c5a7cbfc2737a6f5cf
3 files changed
+8
-11
theme/README.md
+7
-8
@@ -27,13 +27,12 @@ module.exports = {
27
28
```
29
30
-
30
## Theme Options
31
33
-| Option | Required | Default | Type | Description |
34
-| ---------------------- | -------- |---------| --------- | ------------------------------------------------------------------------------ |
35
-| icon | yes | n/a | string | The favicon to display |
36
-| editOnGitHub | yes | n/a | boolean | Determines if the "Edit this page on GitHub" link is displayed on the page |
37
-| showContributors | yes | n/a | boolean | Determines if the repository contributors are displayed |
38
-| showSidebarEditLink | yes | n/a | boolean | Determines if the "Edit this page on GitHub" link is displayed in the SideBar |
39
-| repo | yes | n/a | object | `url`, `defaultBranch` and `path` to repository |
32
+| Option | Required | Default | Type | Description |
33
+| ------------------- | -------- | ------- | ------- | ----------------------------------------------------------------------------- |
34
+| icon | yes | n/a | string | The favicon to display |
35
+| editOnGitHub | yes | n/a | boolean | Determines if the "Edit this page on GitHub" link is displayed on the page |
36
+| showContributors | yes | n/a | boolean | Determines if the repository contributors are displayed |
37
+| showSidebarEditLink | yes | n/a | boolean | Determines if the "Edit this page on GitHub" link is displayed in the SideBar |
38
+| repo | yes | n/a | object | `url`, `defaultBranch` and `path` to repository |
theme/src/components/drawer.js
+1
-1
@@ -11,7 +11,7 @@ function Drawer({isOpen, onDismiss, children}) {
11
// These event handlers fix a bug that caused links below the fold
12
// to be unclickable in macOS Safari.
13
// Reference: https://github.com/theKashey/react-focus-lock/issues/79
14
- style={{ textAlign: 'start', fontSize: '1rem', lineHeight: '1.5rem' }}
14
+ style={{textAlign: 'start', fontSize: '1rem', lineHeight: '1.5rem'}}
15
onMouseDown={event => event.preventDefault()}
16
onClick={event => event.target.focus()}
17
>
theme/src/components/header.js
-2
@@ -46,7 +46,6 @@ function Header({location, isSearchEnabled = true}) {
46
<NpmLogo size="32" style={logoStyle} />
47
{siteMetadata.title}
48
</Link>
49
-
49
{isSearchEnabled ? (
50
<Box display={['none', null, null, 'block']} ml={4}>
51
<Search {...search} />
@@ -92,7 +91,6 @@ function HeaderNavItems({items}) {
91
</Box>
92
)
93
}
95
-
94
return (
95
<Link key={index} href={item.url} display="block" color="inherit" ml={4}>
96
{item.title}