diff --git a/next.config.js b/next.config.js index cccf5fa4f..eee4f6883 100644 --- a/next.config.js +++ b/next.config.js @@ -2,9 +2,13 @@ const nextConfig = { experimental: { serverActions: { - allowedOrigins: ['localhost:3000', 'app.100xdevs.com', 'app2.100xdevs.com'] - } - } + allowedOrigins: [ + 'localhost:3000', + 'app.100xdevs.com', + 'app2.100xdevs.com', + ], + }, + }, }; module.exports = nextConfig; diff --git a/src/actions/types.ts b/src/actions/types.ts index 58a7858ca..f494c2210 100644 --- a/src/actions/types.ts +++ b/src/actions/types.ts @@ -3,7 +3,7 @@ import { CommentType } from '@prisma/client'; export interface QueryParams { limit?: number; page?: number; - commentfilter?: CommentFilter; + // commentfilter?: CommentFilter; search?: string; date?: string; type?: CommentType; @@ -13,16 +13,16 @@ export interface QueryParams { timestamp?: number; editCommentId?: number; } -export enum CommentFilter { - md = 'Most downvotes', - mu = 'Most upvotes', - mr = 'Most Recent', -} +// export enum CommentFilter { +// md = 'Most downvotes', +// mu = 'Most upvotes', +// mr = 'Most Recent', +// } export type Delete = { message: string; }; -export enum ROLES { - ADMIN = 'admin', - USER = 'user', -} +// export enum ROLES { +// ADMIN = 'admin', +// USER = 'user', +// } diff --git a/tailwind.config.js b/tailwind.config.js index 957141f55..a683798ef 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -77,4 +77,4 @@ module.exports = { }, }, plugins: [require('tailwindcss-animate')], -}; \ No newline at end of file +};