Skip to content

Commit 134d765

Browse files
committed
Fix examples
1 parent 48bce3e commit 134d765

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"serve:a11y": "yarn workspace @patternfly/react-virtualized-extension serve:a11y"
2323
},
2424
"devDependencies": {
25-
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
26-
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
25+
"react": "^17.0.0 || ^18.0.0",
26+
"react-dom": "^17.0.0 || ^18.0.0",
2727
"typescript": "^5.0.4",
2828
"@types/react": "^18.2.7",
2929
"@types/react-dom": "^18.2.4",

packages/module/patternfly-docs/content/examples/Selectable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { FunctionComponent } from 'react';
2-
import { useState } from 'react';
1+
import { FunctionComponent, useState } from 'react';
32

43
import { CellMeasurerCache, CellMeasurer } from 'react-virtualized';
54
import { AutoSizer, VirtualTableBody } from '@patternfly/react-virtualized-extension';

packages/module/patternfly-docs/content/examples/Sortable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import type { FunctionComponent } from 'react';
2-
import { useState } from 'react';
1+
import { useState, FunctionComponent } from 'react';
32
import { Caption, Table, Td, Th, Thead, ThProps, Tr } from '@patternfly/react-table';
43
import { CellMeasurerCache, CellMeasurer } from 'react-virtualized';
54
import { AutoSizer, VirtualTableBody } from '@patternfly/react-virtualized-extension';

packages/module/patternfly-docs/content/examples/VirtualizedTable.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,36 @@ import { AutoSizer, VirtualTableBody, WindowScroller } from '@patternfly/react-v
1515
import { Table as TableDeprecated, TableHeader as TableHeaderDeprecated } from '@patternfly/react-table/deprecated';
1616
import { Table, Thead, Tr, Th, Td, Caption, TableGridBreakpoint } from '@patternfly/react-table';
1717
import './VirtualGrid.example.css';
18+
import { FunctionComponent, useState, useEffect, Fragment } from 'react';
1819

1920
## Examples
2021

2122
### Basic
2223

2324
```js file="./Basic.tsx"
25+
2426
```
2527

2628
### Sortable
2729

2830
```js file="./Sortable.tsx"
31+
2932
```
3033

3134
### Selectable
3235

3336
```js file="./Selectable.tsx"
37+
3438
```
3539

3640
### Actions
3741

3842
```js file="./Actions.tsx"
43+
3944
```
4045

4146
### Filterable with WindowScroller
4247

4348
```js file="./FilterableWithWindowScroller.tsx"
49+
4450
```

packages/module/patternfly-docs/content/examples/WindowScroller.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ import { AutoSizer, VirtualTableBody, WindowScroller } from '@patternfly/react-v
1717
import { Table as TableDeprecated, TableHeader as TableHeaderDeprecated } from '@patternfly/react-table/deprecated';
1818
import './VirtualGrid.example.css';
1919
import './WindowScroller.example.css';
20+
import { useState, useEffect } from 'react';
2021

2122
## Examples
2223

2324
### Window scroller
2425

2526
```js file="WindowScroller.tsx"
27+
2628
```

0 commit comments

Comments
 (0)