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

Commit

Permalink
feat: Navigation routing component
Browse files Browse the repository at this point in the history
Contributes: #68

Signed-off-by: Jordan <[email protected]>
  • Loading branch information
Jordan committed Dec 8, 2020
1 parent 2578b77 commit 579fbb0
Show file tree
Hide file tree
Showing 29 changed files with 1,118 additions and 101 deletions.
1 change: 1 addition & 0 deletions build/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const withHTMLPlugin = returnPluginWithConfig(HtmlPlugin, {
bootstrapConfigInsert: '{{bootstrapConfigs}}', // config insert for client bootstrap data
favicon: `${IMAGES_DIR}/favicon.ico`, // favicon for this page
inject: true,
base: '/',
});

const withMiniCssExtractPlugin = returnPluginWithConfig(MiniCssExtractPlugin, {
Expand Down
21 changes: 21 additions & 0 deletions client/Bootstrap/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
import React, { FunctionComponent } from 'react';
import { useRouteConfig } from './Navigation/useRouteConfig/useRouteConfig.hook';
import * as pages from 'Pages';
import { NavigationWrapper } from './Navigation';
import { BrowserRouter } from 'react-router-dom';

const App: FunctionComponent = () => {
const RouterConfig = useRouteConfig(pages);

return (
<BrowserRouter>
<NavigationWrapper configuration={RouterConfig} />
</BrowserRouter>
);
};

export { App };
Loading

0 comments on commit 579fbb0

Please sign in to comment.