Skip to content

Commit 67aadce

Browse files
different icons for different sorting
Signed-off-by: its-mitesh-kumar <[email protected]>
1 parent 30a772b commit 67aadce

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

workspaces/lightspeed/plugins/lightspeed/src/components/LightSpeedChat.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import {
4949
import {
5050
PlusIcon,
5151
SearchIcon,
52+
SortAmountDownAltIcon,
5253
SortAmountDownIcon,
5354
} from '@patternfly/react-icons';
5455
import { useQueryClient } from '@tanstack/react-query';
@@ -538,7 +539,12 @@ export const LightspeedChat = ({
538539
onClick={onSortToggle}
539540
isExpanded={isSortSelectOpen}
540541
>
541-
<SortAmountDownIcon />
542+
{selectedSort === 'oldest' ||
543+
selectedSort === 'alphabeticalDesc' ? (
544+
<SortAmountDownAltIcon />
545+
) : (
546+
<SortAmountDownIcon />
547+
)}
542548
</MenuToggle>
543549
</Tooltip>
544550
)}

workspaces/lightspeed/yarn.lock

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15502,7 +15502,6 @@ __metadata:
1550215502
"@backstage/ui": ^0.8.2
1550315503
"@material-ui/core": ^4.12.2
1550415504
"@material-ui/icons": ^4.9.1
15505-
"@monaco-editor/react": ^4.6.0
1550615505
"@playwright/test": 1.57.0
1550715506
"@red-hat-developer-hub/backstage-plugin-lightspeed": "*"
1550815507
"@testing-library/dom": ^9.0.0
@@ -15511,7 +15510,6 @@ __metadata:
1551115510
"@testing-library/user-event": ^14.0.0
1551215511
"@types/react-dom": "*"
1551315512
cross-env: ^7.0.0
15514-
monaco-editor: ^0.52.0
1551515513
react: ^18.0.2
1551615514
react-dom: ^18.0.2
1551715515
react-router: ^6.3.0

0 commit comments

Comments
 (0)