File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ import BrowserOnly from '@docusaurus/BrowserOnly' ;
12import React , { useEffect , useState } from "react" ;
23import Layout from "@theme/Layout" ;
34
@@ -15,6 +16,16 @@ import {
1516} from "@fortawesome/free-solid-svg-icons" ;
1617import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
1718
19+ export default function ( props ) {
20+ return (
21+ < BrowserOnly fallback = { < div > Loading...</ div > } >
22+ { ( ) => {
23+ return < ExamplesPage { ...props } /> ;
24+ } }
25+ </ BrowserOnly >
26+ ) ;
27+ }
28+
1829function ExampleLayout ( { children } ) {
1930 return (
2031 < Layout >
@@ -28,7 +39,7 @@ function ExampleLayout({ children }) {
2839 )
2940}
3041
31- export default function ExamplesPage ( { examples, example } ) {
42+ function ExamplesPage ( { examples, example } ) {
3243 if ( example ) {
3344 return (
3445 < ExampleLayout >
You can’t perform that action at this time.
0 commit comments