From e6e8ce2154eca861e9a2aa159473099d099c780e Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Wed, 13 Sep 2023 19:48:30 -0700 Subject: [PATCH] Update downstream snapshots + fix `false` className by using `classNames()` util --- .../column_selector.test.tsx.snap | 20 +++++++++---------- .../column_sorting.test.tsx.snap | 12 +++++------ .../column_sorting_draggable.test.tsx.snap | 8 ++++---- .../datagrid/controls/column_selector.tsx | 17 +++++++++------- .../controls/column_sorting_draggable.tsx | 8 +++++--- 5 files changed, 35 insertions(+), 30 deletions(-) diff --git a/src/components/datagrid/controls/__snapshots__/column_selector.test.tsx.snap b/src/components/datagrid/controls/__snapshots__/column_selector.test.tsx.snap index 7bcf150efde..e1e8d65ead3 100644 --- a/src/components/datagrid/controls/__snapshots__/column_selector.test.tsx.snap +++ b/src/components/datagrid/controls/__snapshots__/column_selector.test.tsx.snap @@ -80,20 +80,20 @@ exports[`useDataGridColumnSelector columnSelector [React 17] renders a toolbar b class="euiDataGrid__controlScroll" >

- + <> {filteredColumns.map((id, index) => ( {(provided, state) => (

))} - +
diff --git a/src/components/datagrid/controls/column_sorting_draggable.tsx b/src/components/datagrid/controls/column_sorting_draggable.tsx index a26b08b00c0..2fa7f1264b3 100644 --- a/src/components/datagrid/controls/column_sorting_draggable.tsx +++ b/src/components/datagrid/controls/column_sorting_draggable.tsx @@ -7,6 +7,8 @@ */ import React, { FunctionComponent } from 'react'; +import classNames from 'classnames'; + import { EuiScreenReaderOnly } from '../../accessibility'; import { EuiButtonGroup, EuiButtonIcon } from '../../button'; import { EuiDraggable } from '../../drag_and_drop'; @@ -78,9 +80,9 @@ export const EuiDataGridColumnSortingDraggable: FunctionComponent< > {(provided, state) => (