mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 09:58:14 +00:00
fix(ui): arrow click position update (#5016)
This commit is contained in:
parent
26c0acf786
commit
05310e4912
@ -29,6 +29,7 @@ const Title = styled.div`
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
cursor: pointer;
|
||||
`;
|
||||
|
||||
const CheckBox = styled(Checkbox)`
|
||||
@ -57,15 +58,12 @@ export const SearchFilter = ({ facet, selectedFilters, onFilterSelect, defaultDi
|
||||
|
||||
return (
|
||||
<SearchFilterWrapper key={facet.field}>
|
||||
<Title>
|
||||
<Title onClick={() => setAreFiltersVisible((prevState) => !prevState)}>
|
||||
{facet?.displayName}
|
||||
{areFiltersVisible ? (
|
||||
<StyledUpOutlined onClick={() => setAreFiltersVisible(false)} />
|
||||
<StyledUpOutlined />
|
||||
) : (
|
||||
<StyledDownOutlined
|
||||
data-testid={`expand-facet-${facet.field}`}
|
||||
onClick={() => setAreFiltersVisible(true)}
|
||||
/>
|
||||
<StyledDownOutlined data-testid={`expand-facet-${facet.field}`} />
|
||||
)}
|
||||
</Title>
|
||||
{areFiltersVisible && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user