feat: blacklist items from Discover page (#632)
* feat: blacklist media items re #490 * feat: blacklist media items * feat: blacklist media items * style: formatting * refactor: close the manage slide-over when the media item is removed from the blacklist * fix: fix media data in the db when blacklisting an item * refactor: refactor component to accept show boolean * refactor: hide watchlist button in the media page when it's blacklisted. Also add a blacklist button * style: formatting --------- Co-authored-by: JoaquinOlivero <joaquin.olivero@hotmail.com>
This commit is contained in:
13
src/pages/blacklist/index.tsx
Normal file
13
src/pages/blacklist/index.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import Blacklist from '@app/components/Blacklist';
|
||||
import useRouteGuard from '@app/hooks/useRouteGuard';
|
||||
import { Permission } from '@server/lib/permissions';
|
||||
import type { NextPage } from 'next';
|
||||
|
||||
const BlacklistPage: NextPage = () => {
|
||||
useRouteGuard([Permission.MANAGE_BLACKLIST, Permission.VIEW_BLACKLIST], {
|
||||
type: 'or',
|
||||
});
|
||||
return <Blacklist />;
|
||||
};
|
||||
|
||||
export default BlacklistPage;
|
||||
Reference in New Issue
Block a user