Skip to content

Commit 6ad0111

Browse files
committed
fix: linter
1 parent 85f13f4 commit 6ad0111

File tree

5 files changed

+29
-34
lines changed

5 files changed

+29
-34
lines changed

apify-docs-theme/src/theme/Footer/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ function Footer() {
3030
return (
3131
<footer className={clsx(styles.footer, style)}>
3232
<div className={styles.container}>
33-
<div className={clsx("row", styles.top)}>
33+
<div className={clsx('row', styles.top)}>
3434
{ links.map((column, i) => (
3535
<div key={i} className={`col col--2`}>
3636
<FooterLinksColumn {...{ column }} />
3737
</div>
3838
))
3939
}
4040
</div>
41-
<div className={clsx("row", styles.bottom)}>
41+
<div className={clsx('row', styles.bottom)}>
4242
<div className="col col--6">
4343
<a href="https://apify.com" target={'_blank'} rel={'dofollow noreferrer'}>
4444
<span className={styles.logo}></span>

apify-docs-theme/src/theme/Layout/index.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import { useLocation } from '@docusaurus/router';
21
// cannot use any of the theme aliases here as it causes a circular dependency :( ideas welcome
32
import Layout from '@docusaurus/theme-classic/lib/theme/Layout/index';
4-
import useBaseUrl from '@docusaurus/useBaseUrl';
53
import React from 'react';
64

75
export default function LayoutWrapper(props) {
8-
const baseUrl = useBaseUrl('/');
9-
const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '');
10-
116
return (
127
<div style={{
138
margin: 0,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import styles from '../CTA/styles.module.css';
1+
import styles from './styles.module.css';
22

33
export default function NavbarCTA() {
44
return (
5-
<a href="https://console.apify.com" className={styles.getStarted}>Get started</a>
5+
<a href="https://console.apify.com" className={styles.getStarted}>Get started</a>
66
);
77
}
Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useNavbarMobileSidebar, useThemeConfig } from '@docusaurus/theme-common/internal';
2-
32
import IconClose from '@theme/Icon/Close';
43
import NavbarLogo from '@theme/Navbar/Logo';
54
import NavbarSearch from '@theme/Navbar/Search';
@@ -15,28 +14,28 @@ export default function NavbarMobileSidebarHeader() {
1514
const searchBarItem = items.find((item) => item.type === 'search');
1615

1716
return (
18-
<>
19-
<div className="navbar-sidebar__brand">
20-
<NavbarLogo />
21-
<button
22-
type="button"
23-
className="clean-btn navbar-sidebar__close"
24-
onClick={() => mobileSidebar.toggle()}
25-
aria-label="Close navigation bar"
26-
>
27-
<IconClose />
28-
</button>
29-
</div>
30-
<div className="navbar-sidebar__actions">
31-
<div className="navbar-sidebar__actions__container">
32-
<NavbarCTA />
33-
{!searchBarItem && (
34-
<NavbarSearch>
35-
<SearchBar />
36-
</NavbarSearch>
37-
)}
38-
</div>
39-
</div>
40-
</>
17+
<>
18+
<div className="navbar-sidebar__brand">
19+
<NavbarLogo />
20+
<button
21+
type="button"
22+
className="clean-btn navbar-sidebar__close"
23+
onClick={() => mobileSidebar.toggle()}
24+
aria-label="Close navigation bar"
25+
>
26+
<IconClose />
27+
</button>
28+
</div>
29+
<div className="navbar-sidebar__actions">
30+
<div className="navbar-sidebar__actions__container">
31+
<NavbarCTA />
32+
{!searchBarItem && (
33+
<NavbarSearch>
34+
<SearchBar />
35+
</NavbarSearch>
36+
)}
37+
</div>
38+
</div>
39+
</>
4140
);
4241
}

apify-docs-theme/src/theme/SearchBar/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import './styles.css';
2+
13
import BrowserOnly from '@docusaurus/BrowserOnly';
24
import RouterLink from '@docusaurus/Link';
35
import { useHistory, useLocation } from '@docusaurus/router';
46
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
57
import React, { useCallback } from 'react';
68

79
import { ApifySearch } from '@apify/docs-search-modal';
8-
import './styles.css';
910

1011
/**
1112
* Tests whether the given href is pointing to the current docusaurus instance (so we can use the router link).

0 commit comments

Comments
 (0)