mv list urls back under lists path for more url flexibility

This commit is contained in:
Collin M. Barrett 2019-09-01 09:40:25 -05:00
parent 145e078591
commit 9074bff542
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ interface Props {
};
export const ListInfoButton = (props: RouteComponentProps & Props) => {
const listPath = `/${slugify(props.list.name)}`;
const listPath = `/lists/${slugify(props.list.name)}`;
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="/:listSlug" render={renderDrawer} />;
return <Route path="/lists/:listSlug" render={renderDrawer} />;
};