From 006fb8c0b1eb12476bf4619738547ef5d8d561ba Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Wed, 7 Aug 2024 15:10:08 +0100 Subject: [PATCH] enhacements --- .../dataviews-view-config/index.tsx | 74 +++++++++---------- .../dataviews-view-config/style.scss | 2 +- packages/dataviews/src/constants.ts | 15 ++-- 3 files changed, 42 insertions(+), 49 deletions(-) diff --git a/packages/dataviews/src/components/dataviews-view-config/index.tsx b/packages/dataviews/src/components/dataviews-view-config/index.tsx index bd4c8a5116e3bc..28e151079008eb 100644 --- a/packages/dataviews/src/components/dataviews-view-config/index.tsx +++ b/packages/dataviews/src/components/dataviews-view-config/index.tsx @@ -11,6 +11,7 @@ import { Popover, __experimentalToggleGroupControl as ToggleGroupControl, __experimentalToggleGroupControlOption as ToggleGroupControlOption, + __experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon, SelectControl, __experimentalItemGroup as ItemGroup, __experimentalItem as Item, @@ -29,7 +30,7 @@ import warning from '@wordpress/warning'; /** * Internal dependencies */ -import { SORTING_DIRECTIONS, sortLabelsShort } from '../../constants'; +import { SORTING_DIRECTIONS, sortIcons, sortLabels } from '../../constants'; import { VIEW_LAYOUTS, getMandatoryFields } from '../../dataviews-layouts'; import type { SupportedLayouts } from '../../types'; import DataViewsContext from '../dataviews-context'; @@ -60,9 +61,9 @@ function ViewTypeMenu( {