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

feat: Navigation routing component #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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