Merge pull request #15284 from strapi/fix/documentation-link-guided-tour

[fix] Guided tour documentation link
This commit is contained in:
Gustav Hansen 2023-01-02 09:22:00 +01:00 committed by GitHub
commit f1ca1e4051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,9 @@ import { useIntl } from 'react-intl';
const LiStyled = styled.li`
list-style: disc;
&::marker {
color: ${({ theme }) => theme.colors.neutral800};
}
`;
const Content = ({ id, defaultMessage }) => {
@ -19,13 +22,15 @@ const Content = ({ id, defaultMessage }) => {
{ id, defaultMessage },
{
documentationLink: (children) => (
<a
<Typography
as="a"
textColor="primary600"
target="_blank"
rel="noopener noreferrer"
href="https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest-api.html#api-parameters"
>
{children}
</a>
</Typography>
),
b: (children) => <Typography fontWeight="semiBold">{children}</Typography>,
p: (children) => <Typography>{children}</Typography>,