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

Commit

Permalink
chore(frontend): remove unused import and fix typo (#668)
Browse files Browse the repository at this point in the history
* Remove unused import and fix typo
  • Loading branch information
Rustin170506 authored May 9, 2023
1 parent d288eb8 commit c481f82
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions public/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './jquery-import';
import { Provider } from 'react-redux';
import store, { persistor } from './redux/store';
import store from './redux/store';
import '@webapp/../sass/profile.scss';
import '@szhsin/react-menu/dist/index.css';
import Notifications from '@webapp/ui/Notifications';
Expand Down Expand Up @@ -31,7 +31,7 @@ function App() {
<div className="pyroscope-app">
<LoadAppNames>
<Switch>
<Route exact path={ROUTES.CONTINOUS_SINGLE_VIEW}>
<Route exact path={ROUTES.SINGLE_VIEW}>
<SingleView />
</Route>
<Route path={ROUTES.COMPARISON_VIEW}>
Expand Down
4 changes: 2 additions & 2 deletions public/app/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ export function Sidebar() {
<SidebarContent>
<Menu iconShape="square" popperArrow>
<MenuItem
active={isRouteActive(pathname, ROUTES.CONTINOUS_SINGLE_VIEW)}
active={isRouteActive(pathname, ROUTES.SINGLE_VIEW)}
icon={<Icon icon={faWindowMaximize} />}
>
Single View
<NavLink
activeClassName="active-route"
to={{ pathname: ROUTES.CONTINOUS_SINGLE_VIEW, search }}
to={{ pathname: ROUTES.SINGLE_VIEW, search }}
exact
/>
</MenuItem>
Expand Down
2 changes: 1 addition & 1 deletion public/app/pages/routes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum ROUTES {
CONTINOUS_SINGLE_VIEW = '/',
SINGLE_VIEW = '/',
COMPARISON_VIEW = '/comparison',
COMPARISON_DIFF_VIEW = '/comparison-diff',
}
Expand Down

0 comments on commit c481f82

Please sign in to comment.