🐛 fix(type): Fix ts type check error

This commit is contained in:
web@ppanel 2025-01-28 13:55:43 +07:00
parent 1d8c765c14
commit 3cb0629d64
3 changed files with 17 additions and 23 deletions

View File

@ -71,18 +71,18 @@ export default function Page() {
accessorKey: 'id', accessorKey: 'id',
header: 'ID', header: 'ID',
}, },
{ // {
accessorKey: 'email', // accessorKey: 'email',
header: t('userName'), // header: t('userName'),
}, // },
{ // {
accessorKey: 'telephone', // accessorKey: 'telephone',
header: t('telephone'), // header: t('telephone'),
cell: ({ row }) => { // cell: ({ row }) => {
if (!row.original.telephone) return '--'; // if (!row.original.telephone) return '--';
return `+${row.original.telephone_area_code} ${row.original.telephone}`; // return `+${row.original.telephone_area_code} ${row.original.telephone}`;
}, // },
}, // },
{ {
accessorKey: 'balance', accessorKey: 'balance',
header: t('balance'), header: t('balance'),

View File

@ -24,14 +24,8 @@ export async function generateStaticParams() {
]; ];
} }
export default async function Page({ export default async function Page({ params }: any) {
params, const { platform } = params;
}: {
params: {
platform: string;
};
}) {
const { platform } = await params;
const t = await getTranslations('auth'); const t = await getTranslations('auth');
return ( return (
<Certification platform={platform}> <Certification platform={platform}>

View File

@ -69,7 +69,7 @@ export default function HyperText({
const observer = new IntersectionObserver( const observer = new IntersectionObserver(
([entry]) => { ([entry]) => {
if (entry.isIntersecting) { if (entry?.isIntersecting) {
setTimeout(() => { setTimeout(() => {
setIsAnimating(true); setIsAnimating(true);
}, delay); }, delay);
@ -100,8 +100,8 @@ export default function HyperText({
letter === ' ' letter === ' '
? letter ? letter
: index <= iterationCount.current : index <= iterationCount.current
? children[index] ? (children[index] ?? ' ')
: characterSet[getRandomInt(characterSet.length)], : (characterSet[getRandomInt(characterSet.length)] ?? ' '),
), ),
); );
iterationCount.current = iterationCount.current + 0.1; iterationCount.current = iterationCount.current + 0.1;