From fc8a43f22f423055370031bf678a365a61702768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Gra=CC=88=C3=9Fl?= Date: Tue, 12 Sep 2023 11:26:21 +0200 Subject: [PATCH] fix(SystemsCVES): RHINENG-1872 - Remove obsolete Router --- src/index.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/index.js b/src/index.js index ba3711293..889d56052 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,4 @@ import React, { useEffect, Fragment, useState } from 'react'; -import { BrowserRouter as Router } from 'react-router-dom'; import SystemCVEs from './Components/SmartComponents/SystemCves/SystemCves'; import { SystemCvesStore } from './Store/Reducers/SystemCvesStore'; import PropTypes from 'prop-types'; @@ -21,15 +20,13 @@ const WrappedSystemCves = ({ getRegistry, ...props }) => { setWrapper(() => getRegistry ? Provider : Fragment); }, []); - return - { - Wrapper ? - - : - - - } - ; + return ( + Wrapper ? + + : + + + ); }; WrappedSystemCves.propTypes = {