refactor: rename blacklist to blocklist (#2157)
Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me> Co-authored-by: fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Co-authored-by: 0xsysr3ll <0xsysr3ll@pm.me> Co-authored-by: gauthier-th <mail@gauthierth.fr>
This commit is contained in:
@@ -231,7 +231,7 @@ CoreApp.getInitialProps = async (initialProps) => {
|
||||
applicationTitle: '',
|
||||
applicationUrl: '',
|
||||
hideAvailable: false,
|
||||
hideBlacklisted: false,
|
||||
hideBlocklisted: false,
|
||||
movie4kEnabled: false,
|
||||
series4kEnabled: false,
|
||||
localLogin: true,
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
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;
|
||||
13
src/pages/blocklist/index.tsx
Normal file
13
src/pages/blocklist/index.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import Blocklist from '@app/components/Blocklist';
|
||||
import useRouteGuard from '@app/hooks/useRouteGuard';
|
||||
import { Permission } from '@server/lib/permissions';
|
||||
import type { NextPage } from 'next';
|
||||
|
||||
const BlocklistPage: NextPage = () => {
|
||||
useRouteGuard([Permission.MANAGE_BLOCKLIST, Permission.VIEW_BLOCKLIST], {
|
||||
type: 'or',
|
||||
});
|
||||
return <Blocklist />;
|
||||
};
|
||||
|
||||
export default BlocklistPage;
|
||||
Reference in New Issue
Block a user