{JSON.stringify(f, null, 2)}@@ -215,7 +215,7 @@ export default function Page({ searchParams }: PageProps): React.JSX.Element { // Sorting and filtering has to be done on the server. -function applySort(row: LpCategory[], sortDir: 'asc' | 'desc' | undefined): LpCategory[] { +function applySort(row: CrCategory[], sortDir: 'asc' | 'desc' | undefined): CrCategory[] { return row.sort((a, b) => { if (sortDir === 'asc') { return a.createdAt.getTime() - b.createdAt.getTime(); @@ -225,7 +225,7 @@ function applySort(row: LpCategory[], sortDir: 'asc' | 'desc' | undefined): LpCa }); } -function applyFilters(row: LpCategory[], { email, phone, status, name, visible }: Filters): LpCategory[] { +function applyFilters(row: CrCategory[], { email, phone, status, name, visible }: Filters): CrCategory[] { return row.filter((item) => { if (email) { if (!item.email?.toLowerCase().includes(email.toLowerCase())) { diff --git a/002_source/cms/src/app/dashboard/cr/questions/[cat_id]/page.tsx b/002_source/cms/src/app/dashboard/cr/questions/[cat_id]/page.tsx index 08488f3..dd0d7eb 100644 --- a/002_source/cms/src/app/dashboard/cr/questions/[cat_id]/page.tsx +++ b/002_source/cms/src/app/dashboard/cr/questions/[cat_id]/page.tsx @@ -7,7 +7,7 @@ import SampleAddressCard from '@/app/dashboard/Sample/AddressCard'; import { SampleNotifications } from '@/app/dashboard/Sample/Notifications'; import SamplePaymentCard from '@/app/dashboard/Sample/PaymentCard'; import SampleSecurityCard from '@/app/dashboard/Sample/SecurityCard'; -import { COL_QUIZ_LP_QUESTIONS } from '@/constants'; +import { COL_QUIZ_CR_QUESTIONS } from '@/constants'; import { Grid } from '@mui/material'; import Box from '@mui/material/Box'; import Link from '@mui/material/Link'; @@ -21,9 +21,9 @@ import { logger } from '@/lib/default-logger'; import { pb } from '@/lib/pb'; import { toast } from '@/components/core/toaster'; import ErrorDisplay from '@/components/dashboard/error'; -import { defaultLpQuestion } from '@/components/dashboard/lp/questions/_constants.ts'; -import { Notifications } from '@/components/dashboard/lp/questions/notifications'; -import type { LpQuestion } from '@/components/dashboard/lp/questions/type'; +import { defaultCrQuestion } from '@/components/dashboard/cr/questions/_constants.ts'; +import { Notifications } from '@/components/dashboard/cr/questions/notifications'; +import type { CrQuestion } from '@/components/dashboard/cr/questions/type'; import FormLoading from '@/components/loading'; import BasicDetailCard from './BasicDetailCard'; @@ -39,18 +39,18 @@ export default function Page(): React.JSX.Element { const [showError, setShowError] = React.useState({ show: false, detail: '' }); // - const [showLessonQuestion, setShowLessonQuestion] = React.useState
{JSON.stringify(f, null, 2)}@@ -214,7 +212,7 @@ export default function Page({ searchParams }: PageProps): React.JSX.Element { // Sorting and filtering has to be done on the server. -function applySort(row: LpQuestion[], sortDir: 'asc' | 'desc' | undefined): LpQuestion[] { +function applySort(row: CrQuestion[], sortDir: 'asc' | 'desc' | undefined): CrQuestion[] { return row.sort((a, b) => { if (sortDir === 'asc') { return a.createdAt.getTime() - b.createdAt.getTime(); @@ -224,7 +222,7 @@ function applySort(row: LpQuestion[], sortDir: 'asc' | 'desc' | undefined): LpQu }); } -function applyFilters(row: LpQuestion[], { email, phone, status, name, visible }: Filters): LpQuestion[] { +function applyFilters(row: CrQuestion[], { email, phone, status, name, visible }: Filters): CrQuestion[] { return row.filter((item) => { if (email) { if (!item.email?.toLowerCase().includes(email.toLowerCase())) { diff --git a/002_source/cms/src/app/dashboard/cr/repomix-output.xml b/002_source/cms/src/app/dashboard/cr/repomix-output.xml deleted file mode 100644 index c11e03d..0000000 --- a/002_source/cms/src/app/dashboard/cr/repomix-output.xml +++ /dev/null @@ -1,1783 +0,0 @@ -This file is a merged representation of the entire codebase, combined into a single document by Repomix. - -
{JSON.stringify(f, null, 2)}-
{JSON.stringify(f, null, 2)}-
{JSON.stringify(f, null, 2)}-
{JSON.stringify(f, null, 2)}-