apply PR review

Signed-off-by: Virginie Ky <virginie.ky@gmail.com>
This commit is contained in:
Virginie Ky 2020-02-27 11:55:51 +01:00
parent 87cbcc8f58
commit 81cc30680a
2 changed files with 2 additions and 5 deletions

View File

@ -10,7 +10,6 @@ const Wrapper = styled.ul`
background-color: ${({ theme }) => theme.main.colors.white};
border: 1px solid ${({ theme }) => theme.main.colors.darkGrey};
box-shadow: 0 2px 4px ${({ theme }) => theme.main.colors.greyAlpha};
${({ isShown }) => isShown && 'display: block;'}
`;
Wrapper.propTypes = {

View File

@ -55,10 +55,8 @@ const HomePage = () => {
};
};
const handleChangeListParams = ({ target: { name, value } }) => {
const key = name.split('.').pop();
handleChangeParams({ target: { name: key, value } });
const handleChangeListParams = ({ target: { value } }) => {
handleChangeParams({ target: { name: '_page', value } });
};
const getQueryValue = key => {