feat: view other users' watchlists (#2959)

* feat: view other users' watchlists

* test: add cypress tests

* feat(lang): translation keys

* refactor: yarn format

* fix: manage requests perm is parent of view watchlist perm
This commit is contained in:
TheCatLady
2022-08-21 22:50:27 -07:00
committed by GitHub
parent 950b1712b7
commit 0839718806
17 changed files with 346 additions and 57 deletions

View File

@@ -0,0 +1,8 @@
import DiscoverWatchlist from '@app/components/Discover/DiscoverWatchlist';
import type { NextPage } from 'next';
const UserWatchlistPage: NextPage = () => {
return <DiscoverWatchlist />;
};
export default UserWatchlistPage;

View File

@@ -0,0 +1,13 @@
import DiscoverWatchlist from '@app/components/Discover/DiscoverWatchlist';
import useRouteGuard from '@app/hooks/useRouteGuard';
import { Permission } from '@app/hooks/useUser';
import type { NextPage } from 'next';
const UserRequestsPage: NextPage = () => {
useRouteGuard([Permission.MANAGE_REQUESTS, Permission.WATCHLIST_VIEW], {
type: 'or',
});
return <DiscoverWatchlist />;
};
export default UserRequestsPage;