Skip to content

Commit

Permalink
Fix wrong types (#7693)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored Feb 11, 2025
1 parent dd2f1a2 commit 73b8c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/doc/virtualscroller/griddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ import { VirtualScroller, VirtualScrollerTemplateOptions } from 'primereact/virt
import { classNames } from 'primereact/utils';
export default function GridDemo() {
const [items] = useState<string[]>(Array.from({ length: 1000 }).map((_, i) => Array.from({ length: 1000 }).map((_j, j) => \`Item #\${i}_\${j}\`)));
const [items] = useState<string[][]>(Array.from({ length: 1000 }).map((_, i) => Array.from({ length: 1000 }).map((_j, j) => \`Item #\${i}_\${j}\`)));
const itemTemplate = (items: string, options: VirtualScrollerTemplateOptions) => {
const itemTemplate = (items: string[], options: VirtualScrollerTemplateOptions) => {
const className = classNames('flex align-items-center p-2', {
'surface-hover': options.odd
});
Expand Down

0 comments on commit 73b8c34

Please sign in to comment.