-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to render the popup portrait on a dedicated page.
- Loading branch information
1 parent
ac04cb2
commit 7e7d2a7
Showing
5 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import Layout from "@theme/Layout"; | ||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; | ||
import {About} from "../components/about"; | ||
import { About } from "@site/src/components/about"; | ||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
|
||
export default function AboutPage(): JSX.Element { | ||
const { siteConfig } = useDocusaurusContext(); | ||
return ( | ||
<Layout> | ||
<BrowserOnly>{() => <About />}</BrowserOnly> | ||
<BrowserOnly>{() => <About/>}</BrowserOnly> | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Layout from "@theme/Layout"; | ||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; | ||
import { About } from "@site/src/components/about"; | ||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
import { useLocation } from "@docusaurus/router"; | ||
|
||
|
||
|
||
|
||
export default function AboutPage(): JSX.Element { | ||
const location = useLocation().pathname; | ||
console.log("In components:", location); | ||
const { siteConfig } = useDocusaurusContext(); | ||
return ( | ||
<Layout> | ||
<BrowserOnly>{() => <About/> | ||
}</BrowserOnly> | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Layout from "@theme/Layout"; | ||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; | ||
import { About } from "@site/src/components/about"; | ||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
|
||
export default function AboutPage(): JSX.Element { | ||
const { siteConfig } = useDocusaurusContext(); | ||
return ( | ||
<Layout> | ||
<BrowserOnly>{() => <About/>}</BrowserOnly> | ||
</Layout> | ||
); | ||
} |