Merge pull request #15733 from strapi/fix/market-cf-link

Point CTB to the marketplace custom field category
This commit is contained in:
Rémi de Juvigny 2023-02-08 11:11:53 +01:00 committed by GitHub
commit 7ab5789794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import { useIntl } from 'react-intl';
import qs from 'qs';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
@ -62,7 +63,11 @@ const EmptyAttributes = () => {
</Box>
</Box>
</Box>
<LinkButton to="/marketplace" variant="secondary" startIcon={<Plus />}>
<LinkButton
to={`/marketplace?${qs.stringify({ categories: ['Custom fields'] })}`}
variant="secondary"
startIcon={<Plus />}
>
{formatMessage({
id: getTrad('modalForm.empty.button'),
defaultMessage: 'Add custom fields',