From 5fbcec99f849cca0b4e4c3b6781bc3cd6417bfd7 Mon Sep 17 00:00:00 2001 From: Igor Octaviano Date: Fri, 7 Aug 2020 04:03:30 -0300 Subject: [PATCH] ohif-319: fix asc and desc order on sort label (#1974) --- platform/ui/src/components/InputGroup/InputGroup.jsx | 2 +- .../ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/ui/src/components/InputGroup/InputGroup.jsx b/platform/ui/src/components/InputGroup/InputGroup.jsx index 938cb4a5e..979380c1f 100644 --- a/platform/ui/src/components/InputGroup/InputGroup.jsx +++ b/platform/ui/src/components/InputGroup/InputGroup.jsx @@ -21,7 +21,7 @@ const InputGroup = ({ const handleFilterLabelClick = name => { if (isSortingEnable) { - let _sortDirection = 'ascending'; + let _sortDirection = 'descending'; if (sortBy === name) { if (sortDirection === 'ascending') { _sortDirection = 'descending'; diff --git a/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx b/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx index c36648c10..00a0bf021 100644 --- a/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx +++ b/platform/ui/src/components/InputLabelWrapper/InputLabelWrapper.jsx @@ -8,8 +8,8 @@ const baseLabelClassName = 'flex flex-col flex-1 text-white text-lg pl-1 select-none'; const spanClassName = 'flex flex-row items-center cursor-pointer focus:outline-none'; const sortIconMap = { - ascending: 'sorting-active-up', - descending: 'sorting-active-down', + descending: 'sorting-active-up', + ascending: 'sorting-active-down', none: 'sorting', };