Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 579fbb0

Browse files
author
Jordan
committed
feat: Navigation routing component
Contributes: #68 Signed-off-by: Jordan <[email protected]>
1 parent 2578b77 commit 579fbb0

29 files changed

+1118
-101
lines changed

build/webpack.common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const withHTMLPlugin = returnPluginWithConfig(HtmlPlugin, {
4040
bootstrapConfigInsert: '{{bootstrapConfigs}}', // config insert for client bootstrap data
4141
favicon: `${IMAGES_DIR}/favicon.ico`, // favicon for this page
4242
inject: true,
43+
base: '/',
4344
});
4445

4546
const withMiniCssExtractPlugin = returnPluginWithConfig(MiniCssExtractPlugin, {

client/Bootstrap/App.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright Strimzi authors.
3+
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
4+
*/
5+
import React, { FunctionComponent } from 'react';
6+
import { useRouteConfig } from './Navigation/useRouteConfig/useRouteConfig.hook';
7+
import * as pages from 'Pages';
8+
import { NavigationWrapper } from './Navigation';
9+
import { BrowserRouter } from 'react-router-dom';
10+
11+
const App: FunctionComponent = () => {
12+
const RouterConfig = useRouteConfig(pages);
13+
14+
return (
15+
<BrowserRouter>
16+
<NavigationWrapper configuration={RouterConfig} />
17+
</BrowserRouter>
18+
);
19+
};
20+
21+
export { App };

0 commit comments

Comments
 (0)