Skip to content

Commit

Permalink
[Snyk] Upgrade @tanstack/react-virtual from 3.8.4 to 3.8.6 (#3606)
Browse files Browse the repository at this point in the history
* update react virtual properly

* table storybook fix typescript

* remove unused import

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
  • Loading branch information
oddvernes and snyk-bot authored Aug 30, 2024
1 parent 4caa1ed commit 70b8a05
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion packages/eds-core-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"@react-stately/calendar": "^3.5.3",
"@react-stately/datepicker": "^3.10.1",
"@react-types/shared": "^3.24.1",
"@tanstack/react-virtual": "3.8.4",
"@tanstack/react-virtual": "3.10.6",
"downshift": "9.0.7",
"react-aria": "^3.34.1"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState, useRef, useCallback } from 'react'
import { useVirtualizer, VirtualItem } from '@tanstack/react-virtual'
import { useVirtualizer } from '@tanstack/react-virtual'
import styled from 'styled-components'
import { StoryFn, Meta } from '@storybook/react'
import {
Expand Down Expand Up @@ -435,7 +435,7 @@ export const VirtualScrolling: StoryFn<TableProps> = () => {
<Table.Row>
<Table.Cell style={{ height: `${paddingTop}px` }}></Table.Cell>
</Table.Row>
{virtualRows.map((virtualRow: VirtualItem<HTMLTableRowElement>) => {
{virtualRows.map((virtualRow) => {
const row: Photo = data[virtualRow.index]

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/eds-data-grid-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@equinor/eds-tokens": "workspace:*",
"@equinor/eds-utils": "workspace:^",
"@tanstack/react-table": "^8.20.1",
"@tanstack/react-virtual": "^3.8.4"
"@tanstack/react-virtual": "^3.10.6"
},
"devDependencies": {
"@rollup/plugin-babel": "^6.0.4",
Expand Down
Loading

0 comments on commit 70b8a05

Please sign in to comment.