diff --git a/jsx/src/components/AddUser/AddUser.jsx b/jsx/src/components/AddUser/AddUser.jsx index b56279bd..9ec96014 100644 --- a/jsx/src/components/AddUser/AddUser.jsx +++ b/jsx/src/components/AddUser/AddUser.jsx @@ -21,7 +21,7 @@ const AddUser = (props) => { }); }; - var { addUsers, failRegexEvent, updateUsers, history } = props; + var { addUsers, updateUsers, history } = props; return ( <> @@ -122,7 +122,6 @@ const AddUser = (props) => { AddUser.propTypes = { addUsers: PropTypes.func, - failRegexEvent: PropTypes.func, updateUsers: PropTypes.func, history: PropTypes.shape({ push: PropTypes.func, diff --git a/jsx/src/components/AddUser/AddUser.test.js b/jsx/src/components/AddUser/AddUser.test.js index ee91fdbd..217ee1a4 100644 --- a/jsx/src/components/AddUser/AddUser.test.js +++ b/jsx/src/components/AddUser/AddUser.test.js @@ -28,7 +28,6 @@ var addUserJsx = (spy, spy2, spy3) => ( {} }} /> diff --git a/jsx/src/components/CreateGroup/CreateGroup.jsx b/jsx/src/components/CreateGroup/CreateGroup.jsx index 37deb4ed..d34254ab 100644 --- a/jsx/src/components/CreateGroup/CreateGroup.jsx +++ b/jsx/src/components/CreateGroup/CreateGroup.jsx @@ -108,7 +108,6 @@ const CreateGroup = (props) => { CreateGroup.propTypes = { createGroup: PropTypes.func, updateGroups: PropTypes.func, - failRegexEvent: PropTypes.func, history: PropTypes.shape({ push: PropTypes.func, }), diff --git a/jsx/src/components/EditUser/EditUser.jsx b/jsx/src/components/EditUser/EditUser.jsx index 2575b808..892c90a5 100644 --- a/jsx/src/components/EditUser/EditUser.jsx +++ b/jsx/src/components/EditUser/EditUser.jsx @@ -170,7 +170,6 @@ EditUser.propTypes = { }), editUser: PropTypes.func, deleteUser: PropTypes.func, - failRegexEvent: PropTypes.func, noChangeEvent: PropTypes.func, updateUsers: PropTypes.func, }; diff --git a/jsx/src/components/EditUser/EditUser.test.js b/jsx/src/components/EditUser/EditUser.test.js index cff36387..920b9e16 100644 --- a/jsx/src/components/EditUser/EditUser.test.js +++ b/jsx/src/components/EditUser/EditUser.test.js @@ -31,7 +31,6 @@ var editUserJsx = (callbackSpy, empty) => ( editUser={callbackSpy} updateUsers={callbackSpy} history={{ push: () => {} }} - failRegexEvent={callbackSpy} noChangeEvent={callbackSpy} /> diff --git a/jsx/src/util/withAPI.js b/jsx/src/util/withAPI.js index f17f7f25..97fc698e 100644 --- a/jsx/src/util/withAPI.js +++ b/jsx/src/util/withAPI.js @@ -41,10 +41,7 @@ const withAPI = withProps(() => ({ jhapiRequest("/users/" + username, "GET") .then((data) => data.status) .then((data) => (data > 200 ? false : true)), - // Temporarily Unused - failRegexEvent: () => { - return null; - }, + noChangeEvent: () => { return null; },