Skip to content

Commit

Permalink
feat: removed the dropdown for sort in places person and orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhishekPAnil committed Jul 7, 2023
1 parent d3e1c54 commit 07d7711
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Sort/Sort.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { sortByOptionsOrgsPlacesPerson, sortOrder } from '../../constants/sortByOptions';
import { useTranslation } from 'react-i18next';
import { Button, Dropdown, Space } from 'antd';
import { DownOutlined, SortAscendingOutlined, SortDescendingOutlined } from '@ant-design/icons';
import { SortAscendingOutlined, SortDescendingOutlined } from '@ant-design/icons';

function Sort() {
const { t } = useTranslation();
Expand All @@ -22,13 +22,14 @@ function Sort() {
defaultSelectedKeys: [filter?.sort],
// onSelect: onSortSelect,
}}
trigger={['click']}>
<Button size="large" className="filter-sort-button">
trigger={['click']}
open={false}>
<Button size="large" className="filter-sort-button" style={{ cursor: 'default' }}>
<Space>
{sortByOptionsOrgsPlacesPerson?.map((sortBy, index) => {
if (sortBy?.key === filter?.sort) return <span key={index}>{sortBy?.label}</span>;
})}
<DownOutlined style={{ fontSize: '12px', color: '#222732' }} />
{/* <DownOutlined style={{ fontSize: '12px', color: '#222732' }} /> */}
</Space>
</Button>
</Dropdown>
Expand Down

0 comments on commit 07d7711

Please sign in to comment.