mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
Fix upload filter picker
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
This commit is contained in:
parent
d2c59743c7
commit
937b002a1e
@ -1,8 +0,0 @@
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
position: relative;
|
||||
padding-bottom: 6px;
|
||||
`;
|
||||
|
||||
export default Wrapper;
|
||||
@ -4,7 +4,6 @@ import { FormattedMessage } from 'react-intl';
|
||||
import { FilterIcon } from 'strapi-helper-plugin';
|
||||
import { Picker } from '@buffetjs/core';
|
||||
import FiltersCard from './FiltersCard';
|
||||
import Wrapper from './Wrapper';
|
||||
|
||||
import formatFilter from './utils/formatFilter';
|
||||
|
||||
@ -14,24 +13,22 @@ const FiltersPicker = ({ onChange }) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
<Picker
|
||||
renderButtonContent={() => (
|
||||
<>
|
||||
<FilterIcon />
|
||||
<FormattedMessage id="app.utils.filters" />
|
||||
</>
|
||||
)}
|
||||
renderSectionContent={onToggle => (
|
||||
<FiltersCard
|
||||
onChange={e => {
|
||||
handleChange(e);
|
||||
onToggle();
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
</Wrapper>
|
||||
<Picker
|
||||
renderButtonContent={() => (
|
||||
<>
|
||||
<FilterIcon />
|
||||
<FormattedMessage id="app.utils.filters" />
|
||||
</>
|
||||
)}
|
||||
renderSectionContent={onToggle => (
|
||||
<FiltersCard
|
||||
onChange={e => {
|
||||
handleChange(e);
|
||||
onToggle();
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user