mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-14 04:11:11 -05:00
🐛 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',
|
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'),
|
||||||
|
|||||||
@ -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}>
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user