mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 13:50:38 +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 = {
|
RolesSelectComponent.propTypes = {
|
||||||
isDisabled: PropTypes.bool.isRequired,
|
isDisabled: PropTypes.bool.isRequired,
|
||||||
value: PropTypes.array,
|
value: PropTypes.array,
|
||||||
error: PropTypes.string,
|
error: PropTypes.object,
|
||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ RoleSettingsModalSection.propTypes = {
|
|||||||
useSSORegistration: PropTypes.bool,
|
useSSORegistration: PropTypes.bool,
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
formErrors: PropTypes.shape({
|
formErrors: PropTypes.shape({
|
||||||
roles: PropTypes.array,
|
roles: PropTypes.object,
|
||||||
useSSORegistration: PropTypes.bool,
|
useSSORegistration: PropTypes.bool,
|
||||||
}),
|
}),
|
||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
import { profileValidation } from '../../../validations/users';
|
import { profileValidation } from '../../Users/utils/validations/users';
|
||||||
|
|
||||||
const schema = yup.object().shape(profileValidation);
|
const schema = yup.object().shape(profileValidation);
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import FormBloc from '../../../components/FormBloc';
|
|||||||
import { Header } from '../../../components/Settings';
|
import { Header } from '../../../components/Settings';
|
||||||
import { MagicLink, SelectRoles } from '../../../components/Users';
|
import { MagicLink, SelectRoles } from '../../../components/Users';
|
||||||
import { useSettingsForm } from '../../../hooks';
|
import { useSettingsForm } from '../../../hooks';
|
||||||
import { editValidation } from '../../../validations/users';
|
import { editValidation } from '../utils/validations/users';
|
||||||
import form from './utils/form';
|
import form from './utils/form';
|
||||||
|
|
||||||
const EditPage = ({ canUpdate }) => {
|
const EditPage = ({ canUpdate }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user