mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 05:39:36 +00:00
Move validations folder into the Users page
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
8c0f92d4a7
commit
3cb0e17f1b
@ -46,7 +46,7 @@ RolesSelectComponent.defaultProps = {
|
||||
RolesSelectComponent.propTypes = {
|
||||
isDisabled: PropTypes.bool.isRequired,
|
||||
value: PropTypes.array,
|
||||
error: PropTypes.string,
|
||||
error: PropTypes.object,
|
||||
onChange: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
|
@ -67,7 +67,7 @@ RoleSettingsModalSection.propTypes = {
|
||||
useSSORegistration: PropTypes.bool,
|
||||
}).isRequired,
|
||||
formErrors: PropTypes.shape({
|
||||
roles: PropTypes.array,
|
||||
roles: PropTypes.object,
|
||||
useSSORegistration: PropTypes.bool,
|
||||
}),
|
||||
onChange: PropTypes.func.isRequired,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as yup from 'yup';
|
||||
import { profileValidation } from '../../../validations/users';
|
||||
import { profileValidation } from '../../Users/utils/validations/users';
|
||||
|
||||
const schema = yup.object().shape(profileValidation);
|
||||
|
||||
|
@ -12,7 +12,7 @@ import FormBloc from '../../../components/FormBloc';
|
||||
import { Header } from '../../../components/Settings';
|
||||
import { MagicLink, SelectRoles } from '../../../components/Users';
|
||||
import { useSettingsForm } from '../../../hooks';
|
||||
import { editValidation } from '../../../validations/users';
|
||||
import { editValidation } from '../utils/validations/users';
|
||||
import form from './utils/form';
|
||||
|
||||
const EditPage = ({ canUpdate }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user