Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit c481f82

Browse files
authored
chore(frontend): remove unused import and fix typo (#668)
* Remove unused import and fix typo
1 parent d288eb8 commit c481f82

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

public/app/app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './jquery-import';
44
import { Provider } from 'react-redux';
5-
import store, { persistor } from './redux/store';
5+
import store from './redux/store';
66
import '@webapp/../sass/profile.scss';
77
import '@szhsin/react-menu/dist/index.css';
88
import Notifications from '@webapp/ui/Notifications';
@@ -31,7 +31,7 @@ function App() {
3131
<div className="pyroscope-app">
3232
<LoadAppNames>
3333
<Switch>
34-
<Route exact path={ROUTES.CONTINOUS_SINGLE_VIEW}>
34+
<Route exact path={ROUTES.SINGLE_VIEW}>
3535
<SingleView />
3636
</Route>
3737
<Route path={ROUTES.COMPARISON_VIEW}>

public/app/components/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ export function Sidebar() {
6060
<SidebarContent>
6161
<Menu iconShape="square" popperArrow>
6262
<MenuItem
63-
active={isRouteActive(pathname, ROUTES.CONTINOUS_SINGLE_VIEW)}
63+
active={isRouteActive(pathname, ROUTES.SINGLE_VIEW)}
6464
icon={<Icon icon={faWindowMaximize} />}
6565
>
6666
Single View
6767
<NavLink
6868
activeClassName="active-route"
69-
to={{ pathname: ROUTES.CONTINOUS_SINGLE_VIEW, search }}
69+
to={{ pathname: ROUTES.SINGLE_VIEW, search }}
7070
exact
7171
/>
7272
</MenuItem>

public/app/pages/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export enum ROUTES {
2-
CONTINOUS_SINGLE_VIEW = '/',
2+
SINGLE_VIEW = '/',
33
COMPARISON_VIEW = '/comparison',
44
COMPARISON_DIFF_VIEW = '/comparison-diff',
55
}

0 commit comments

Comments
 (0)