|
1 | 1 | importReact,{Component}from'react' |
2 | | -import{Provider}from'react-redux' |
3 | 2 | import{BrowserRouter,Match,Miss,Link}from'react-router' |
4 | | -import'./App.css' |
5 | | - |
6 | | -importgridironfrom'gridiron' |
7 | | -importgridironModulesfrom'gridiron-modules' |
8 | 3 |
|
| 4 | +importGridironfrom'./modules/Gridiron' |
9 | 5 | importTopBarfrom'./components/nav/TopBar' |
10 | 6 | importPagerSandboxfrom'./components/PagerSandbox' |
11 | | - |
12 | | -importconfigureStorefrom'./redux/store/configureStore' |
13 | | -conststore=configureStore() |
14 | | - |
15 | | -const{ Logo}=gridiron(gridironModules()) |
| 7 | +importGridSandboxfrom'./components/GridSandbox' |
| 8 | +importAccordionSandboxfrom'./components/AccordionSandbox' |
| 9 | +importCardsSandboxfrom'./components/CardsSandbox' |
| 10 | +importColumnsSandboxfrom'./components/ColumnsSandbox' |
16 | 11 |
|
17 | 12 | constHome=()=>( |
18 | | -<span>HOME</span> |
| 13 | +<div> |
| 14 | +<PagerSandbox/> |
| 15 | +<GridSandbox/> |
| 16 | +<AccordionSandbox/> |
| 17 | +<CardsSandbox/> |
| 18 | +<ColumnsSandbox/> |
| 19 | +</div> |
19 | 20 | ) |
20 | 21 |
|
21 | | - |
22 | | -constApp=()=>( |
23 | | -<Providerstore={store}> |
24 | | -<BrowserRouter> |
25 | | -<div> |
26 | | -<TopBarlogo={<Logo/>}/> |
27 | | -<Matchpattern="/pager"component={PagerSandbox}/> |
28 | | -<Misscomponent={Home}/> |
29 | | -</div> |
30 | | -</BrowserRouter> |
31 | | -</Provider> |
| 22 | +exportdefault()=>( |
| 23 | +<BrowserRouter> |
| 24 | +<div> |
| 25 | +<TopBarlogo={<Gridiron.Logo/>}/> |
| 26 | +<Matchpattern="/pager"component={PagerSandbox}/> |
| 27 | +<Matchpattern="/grid"component={GridSandbox}/> |
| 28 | +<Matchpattern="/accordion"component={AccordionSandbox}/> |
| 29 | +<Matchpattern="/cards"component={CardsSandbox}/> |
| 30 | +<Matchpattern="/columns"component={ColumnsSandbox}/> |
| 31 | +<Misscomponent={Home}/> |
| 32 | +</div> |
| 33 | +</BrowserRouter> |
32 | 34 | ) |
33 | | - |
34 | | -exportdefaultApp |