page size URL query

This commit is contained in:
ronronscelestes 2021-11-09 16:10:14 +01:00
parent 325a7d1e14
commit 95e41b21b7

View File

@ -9,7 +9,7 @@ import { useIntl } from 'react-intl';
import { Box } from '@strapi/design-system/Box'; import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex'; import { Flex } from '@strapi/design-system/Flex';
import { Select, Option } from '@strapi/design-system/Select'; import { Select, Option } from '@strapi/design-system/Select';
import { Text } from '@strapi/design-system/Text'; import { Typography } from '@strapi/design-system/Typography';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import useQueryParams from '../../hooks/useQueryParams'; import useQueryParams from '../../hooks/useQueryParams';
import useTracking from '../../hooks/useTracking'; import useTracking from '../../hooks/useTracking';
@ -48,12 +48,12 @@ const PageSizeURLQuery = ({ trackedEvent }) => {
<Option value="100">100</Option> <Option value="100">100</Option>
</Select> </Select>
<Box paddingLeft={2}> <Box paddingLeft={2}>
<Text textColor="neutral600" as="label" htmlFor="page-size"> <Typography textColor="neutral600" as="label" htmlFor="page-size">
{formatMessage({ {formatMessage({
id: 'components.PageFooter.select', id: 'components.PageFooter.select',
defaultMessage: 'Entries per page', defaultMessage: 'Entries per page',
})} })}
</Text> </Typography>
</Box> </Box>
</Flex> </Flex>
); );