change(ui): notes route cleanup
This commit is contained in:
parent
22b95f308c
commit
e73d633518
1 changed files with 2 additions and 8 deletions
|
|
@ -4,12 +4,11 @@ import SessionsTabOverview from 'Shared/SessionsTabOverview/SessionsTabOverview'
|
|||
import FFlagsList from 'Components/FFlags';
|
||||
import NewFFlag from 'Components/FFlags/NewFFlag';
|
||||
import { Switch, Route } from 'react-router';
|
||||
import { sessions, fflags, withSiteId, newFFlag, fflag, notes, fflagRead, bookmarks } from 'App/routes';
|
||||
import { sessions, fflags, withSiteId, newFFlag, fflag, fflagRead, bookmarks } from 'App/routes';
|
||||
import { withRouter, RouteComponentProps, useLocation } from 'react-router-dom';
|
||||
import FlagView from 'Components/FFlags/FlagView/FlagView';
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { useStore } from '@/mstore';
|
||||
import NotesList from 'Shared/SessionsTabOverview/components/Notes/NoteList';
|
||||
import Bookmarks from 'Shared/SessionsTabOverview/components/Bookmarks/Bookmarks';
|
||||
|
||||
// @ts-ignore
|
||||
|
|
@ -21,7 +20,7 @@ interface IProps extends RouteComponentProps {
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
// TODO should move these routes to the Routes file
|
||||
function Overview({ match: { params } }: IProps) {
|
||||
const { searchStore } = useStore();
|
||||
const { siteId, fflagId } = params;
|
||||
|
|
@ -46,11 +45,6 @@ function Overview({ match: { params } }: IProps) {
|
|||
<Bookmarks />
|
||||
</div>
|
||||
</Route>
|
||||
<Route exact strict path={withSiteId(notes(), siteId)}>
|
||||
<div className="mb-5 w-full mx-auto" style={{ maxWidth: '1360px' }}>
|
||||
<NotesList />
|
||||
</div>
|
||||
</Route>
|
||||
<Route exact strict path={withSiteId(fflags(), siteId)}>
|
||||
<FFlagsList siteId={siteId} />
|
||||
</Route>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue