mirror of
https://github.com/strapi/strapi.git
synced 2025-12-16 09:45:08 +00:00
apply PR review
Signed-off-by: Virginie Ky <virginie.ky@gmail.com>
This commit is contained in:
parent
87cbcc8f58
commit
81cc30680a
@ -10,7 +10,6 @@ const Wrapper = styled.ul`
|
|||||||
background-color: ${({ theme }) => theme.main.colors.white};
|
background-color: ${({ theme }) => theme.main.colors.white};
|
||||||
border: 1px solid ${({ theme }) => theme.main.colors.darkGrey};
|
border: 1px solid ${({ theme }) => theme.main.colors.darkGrey};
|
||||||
box-shadow: 0 2px 4px ${({ theme }) => theme.main.colors.greyAlpha};
|
box-shadow: 0 2px 4px ${({ theme }) => theme.main.colors.greyAlpha};
|
||||||
${({ isShown }) => isShown && 'display: block;'}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
Wrapper.propTypes = {
|
Wrapper.propTypes = {
|
||||||
|
|||||||
@ -55,10 +55,8 @@ const HomePage = () => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleChangeListParams = ({ target: { name, value } }) => {
|
const handleChangeListParams = ({ target: { value } }) => {
|
||||||
const key = name.split('.').pop();
|
handleChangeParams({ target: { name: '_page', value } });
|
||||||
|
|
||||||
handleChangeParams({ target: { name: key, value } });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getQueryValue = key => {
|
const getQueryValue = key => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user