Add back button to user-permissions => roles => editview

Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
soupette 2021-10-21 15:57:01 +02:00
parent e1678fa3cd
commit 1e85b9761b
2 changed files with 445 additions and 315 deletions

View File

@ -7,7 +7,9 @@ import { Box } from '@strapi/parts/Box';
import { TextInput } from '@strapi/parts/TextInput';
import { Textarea } from '@strapi/parts/Textarea';
import { H3 } from '@strapi/parts/Text';
import BackIcon from '@strapi/icons/BackIcon';
import CheckIcon from '@strapi/icons/CheckIcon';
import { Link } from '@strapi/parts/Link';
import { GridItem, Grid } from '@strapi/parts/Grid';
import { Formik } from 'formik';
import { useIntl } from 'react-intl';
@ -103,6 +105,14 @@ const EditPage = () => {
}
title={role.name}
subtitle={role.description}
navigationAction={
<Link startIcon={<BackIcon />} to="/settings/users-permissions/roles">
{formatMessage({
id: 'app.components.go-back',
defaultMessage: 'Go back',
})}
</Link>
}
/>
<ContentLayout>
<Stack size={7}>