Skip to content

Commit 21d6ee2

Browse files
committed
Work around patternfly/react-data-view regression
Signed-off-by: Michael Edgar <medgar@redhat.com>
1 parent aad0889 commit 21d6ee2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

api/src/main/webui/src/components/common/ResourceListDataView.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ import {
99
useDataViewFilters,
1010
useDataViewPagination,
1111
DataViewEventsProvider,
12-
DataViewTh,
1312
DataViewTr,
1413
DataViewState,
1514
useDataViewSort,
1615
} from '@patternfly/react-data-view';
16+
/*
17+
* The following import is a work-around for
18+
* https://github.com/patternfly/react-data-view/issues/662
19+
* and should be removed when upgrading to a version of react-data-view
20+
* that includes the fix. The DataViewTh import should be moved above to
21+
* be from '@patternfly/react-data-view'.
22+
*/
23+
import { DataViewTh } from '@patternfly/react-data-view/dist/cjs/DataViewTable';
1724
import {
1825
Pagination,
1926
EmptyState,

0 commit comments

Comments
 (0)