🐛 fix(type): Fix ts type check error
This commit is contained in:
parent
1d8c765c14
commit
3cb0629d64
@ -71,18 +71,18 @@ export default function Page() {
|
||||
accessorKey: 'id',
|
||||
header: 'ID',
|
||||
},
|
||||
{
|
||||
accessorKey: 'email',
|
||||
header: t('userName'),
|
||||
},
|
||||
{
|
||||
accessorKey: 'telephone',
|
||||
header: t('telephone'),
|
||||
cell: ({ row }) => {
|
||||
if (!row.original.telephone) return '--';
|
||||
return `+${row.original.telephone_area_code} ${row.original.telephone}`;
|
||||
},
|
||||
},
|
||||
// {
|
||||
// accessorKey: 'email',
|
||||
// header: t('userName'),
|
||||
// },
|
||||
// {
|
||||
// accessorKey: 'telephone',
|
||||
// header: t('telephone'),
|
||||
// cell: ({ row }) => {
|
||||
// if (!row.original.telephone) return '--';
|
||||
// return `+${row.original.telephone_area_code} ${row.original.telephone}`;
|
||||
// },
|
||||
// },
|
||||
{
|
||||
accessorKey: 'balance',
|
||||
header: t('balance'),
|
||||
|
||||
@ -24,14 +24,8 @@ export async function generateStaticParams() {
|
||||
];
|
||||
}
|
||||
|
||||
export default async function Page({
|
||||
params,
|
||||
}: {
|
||||
params: {
|
||||
platform: string;
|
||||
};
|
||||
}) {
|
||||
const { platform } = await params;
|
||||
export default async function Page({ params }: any) {
|
||||
const { platform } = params;
|
||||
const t = await getTranslations('auth');
|
||||
return (
|
||||
<Certification platform={platform}>
|
||||
|
||||
@ -69,7 +69,7 @@ export default function HyperText({
|
||||
|
||||
const observer = new IntersectionObserver(
|
||||
([entry]) => {
|
||||
if (entry.isIntersecting) {
|
||||
if (entry?.isIntersecting) {
|
||||
setTimeout(() => {
|
||||
setIsAnimating(true);
|
||||
}, delay);
|
||||
@ -100,8 +100,8 @@ export default function HyperText({
|
||||
letter === ' '
|
||||
? letter
|
||||
: index <= iterationCount.current
|
||||
? children[index]
|
||||
: characterSet[getRandomInt(characterSet.length)],
|
||||
? (children[index] ?? ' ')
|
||||
: (characterSet[getRandomInt(characterSet.length)] ?? ' '),
|
||||
),
|
||||
);
|
||||
iterationCount.current = iterationCount.current + 0.1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user