You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code gives an error here: <Table query={query} currentPage={currentPage} />
Type 'string | number' is not assignable to type 'number'.
Type 'string' is not assignable to type 'number'.ts(2322)
table.tsx(12, 3): The expected type comes from property 'currentPage' which is declared here on type 'IntrinsicAttributes & { query: string; currentPage: number; }'
After changing page prop type to number it works
searchParams?: { query?: string; page?: number };
The text was updated successfully, but these errors were encountered:
This code gives an error here:
<Table query={query} currentPage={currentPage} />
After changing page prop type to number it works
searchParams?: { query?: string; page?: number };
The text was updated successfully, but these errors were encountered: