Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-yx authored and actions-user committed Jul 15, 2021
1 parent 8f79997 commit a99be87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docusaurus.config.js
Expand Up @@ -44,7 +44,8 @@ module.exports = {
},
{
to: "/application-development",
activeBaseRegex: "(/application-development)|(/docs/(go|java|php|node))",
activeBaseRegex:
"(/application-development)|(/docs/(go|java|php|node))",
label: "SDKs",
},
{
Expand Down
8 changes: 4 additions & 4 deletions src/theme/DocItem/index.js
Expand Up @@ -10,13 +10,13 @@ import DocVersionBanner from "@theme/DocVersionBanner";
import Seo from "@theme/Seo";
import LastUpdated from "@theme/LastUpdated";
import TOC from "@theme/TOC";
import TOCCollapsible from '@theme/TOCCollapsible';
import TOCCollapsible from "@theme/TOCCollapsible";
import EditThisPage from "@theme/EditThisPage";
import {MainHeading} from "@theme/Heading";
import clsx from "clsx";
import styles from "./styles.module.css";
import {useActivePlugin, useVersions} from "@theme/hooks/useDocs";
import useWindowSize from '@theme/hooks/useWindowSize';
import useWindowSize from "@theme/hooks/useWindowSize";

function DocItem(props) {
const {content: DocContent, versionMetadata} = props;
Expand Down Expand Up @@ -54,12 +54,12 @@ function DocItem(props) {
const renderTocMobile =
!hideTableOfContents &&
DocContent.toc &&
(windowSize === 'mobile' || windowSize === 'ssr');
(windowSize === "mobile" || windowSize === "ssr");

const renderTocDesktop =
!hideTableOfContents &&
DocContent.toc &&
(windowSize === 'desktop' || windowSize === 'ssr');
(windowSize === "desktop" || windowSize === "ssr");

return (
<>
Expand Down

0 comments on commit a99be87

Please sign in to comment.