rm lists from list url path

This commit is contained in:
Collin M. Barrett 2019-08-31 20:32:33 -05:00
parent ad37bc4dee
commit e9f233bb2b
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ interface Props {
};
export const ListInfoButton = (props: RouteComponentProps & Props) => {
const listPath = `/lists/${props.list.id}`;
const listPath = `/${props.list.id}`;
return (
<Button
type="primary"

View file

@ -26,5 +26,5 @@ export const ListDrawer = (props: Props) => {
{...rp} />
: props.lists && props.lists.length && <Redirect to={{ pathname: "/", }} />;
};
return <Route path="/lists/:id" render={renderDrawer} />;
return <Route path="/:id" render={renderDrawer} />;
};