11import React from 'react' ;
2- import { PageLayout , Content , Main } from "@atlaskit/page-layout"
2+ import { Content , Main , PageLayout } from "@atlaskit/page-layout"
33import ShowcaseTopNavigation from "./components/ShowcaseTopNavigation" ;
44import ShowcaseLeftSidebar from "./components/ShowcaseLeftSidebar" ;
5- import { HashRouter , Routes , Route , Navigate } from "react-router-dom" ;
5+ import { HashRouter , Navigate , Route , Routes } from "react-router-dom" ;
66import IntroPage from "./page/IntroPage" ;
77import NotFoundPage from "./page/NotFoundPage" ;
88import UtilsPage from "./page/UtilsPage" ;
@@ -13,46 +13,46 @@ function App() {
1313 require ( "./custom.css" )
1414
1515 return (
16- < div className = "App" >
17- < PageLayout >
18- < ShowcaseTopNavigation />
19- < Content >
20- < ShowcaseLeftSidebar />
16+ < HashRouter >
17+ < div className = "App" >
18+ < PageLayout >
19+ < ShowcaseTopNavigation />
20+ < Content >
21+ < ShowcaseLeftSidebar />
2122
22- < Main >
23- < div style = { {
24- margin : "50px 50px" ,
25- display : "flex" ,
26- flexDirection : "column"
27- } } >
28- < HashRouter >
23+ < Main >
24+ < div style = { {
25+ margin : "50px 50px" ,
26+ display : "flex" ,
27+ flexDirection : "column"
28+ } } >
2929 < Routes >
3030 < Route
3131 path = "/"
3232 element = { < Navigate to = "/intro" /> }
33- />
33+ />
3434 < Route
3535 path = "/intro"
36- element = { < IntroPage /> }
37- />
36+ element = { < IntroPage /> }
37+ />
3838 < Route
3939 path = "/wrappers"
40- element = { < WrappersPage /> }
41- />
40+ element = { < WrappersPage /> }
41+ />
4242 < Route
4343 path = "/utils"
44- element = { < UtilsPage /> }
45- />
44+ element = { < UtilsPage /> }
45+ />
4646 < Route
47- element = { < NotFoundPage /> }
48- />
47+ element = { < NotFoundPage /> }
48+ />
4949 </ Routes >
50- </ HashRouter >
51- </ div >
52- </ Main >
53- </ Content >
54- </ PageLayout >
55- </ div >
50+ </ div >
51+ </ Main >
52+ </ Content >
53+ </ PageLayout >
54+ </ div >
55+ </ HashRouter >
5656 ) ;
5757}
5858
0 commit comments