Merge pull request #4172 from liliyao2022/patch-10

Deleted unused failRegexEvent
This commit is contained in:
Min RK
2022-11-24 11:22:40 +01:00
committed by GitHub
6 changed files with 2 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ const AddUser = (props) => {
}); });
}; };
var { addUsers, failRegexEvent, updateUsers, history } = props; var { addUsers, updateUsers, history } = props;
return ( return (
<> <>
@@ -122,7 +122,6 @@ const AddUser = (props) => {
AddUser.propTypes = { AddUser.propTypes = {
addUsers: PropTypes.func, addUsers: PropTypes.func,
failRegexEvent: PropTypes.func,
updateUsers: PropTypes.func, updateUsers: PropTypes.func,
history: PropTypes.shape({ history: PropTypes.shape({
push: PropTypes.func, push: PropTypes.func,

View File

@@ -28,7 +28,6 @@ var addUserJsx = (spy, spy2, spy3) => (
<HashRouter> <HashRouter>
<AddUser <AddUser
addUsers={spy} addUsers={spy}
failRegexEvent={spy2 || spy}
updateUsers={spy3 || spy2 || spy} updateUsers={spy3 || spy2 || spy}
history={{ push: () => {} }} history={{ push: () => {} }}
/> />

View File

@@ -108,7 +108,6 @@ const CreateGroup = (props) => {
CreateGroup.propTypes = { CreateGroup.propTypes = {
createGroup: PropTypes.func, createGroup: PropTypes.func,
updateGroups: PropTypes.func, updateGroups: PropTypes.func,
failRegexEvent: PropTypes.func,
history: PropTypes.shape({ history: PropTypes.shape({
push: PropTypes.func, push: PropTypes.func,
}), }),

View File

@@ -170,7 +170,6 @@ EditUser.propTypes = {
}), }),
editUser: PropTypes.func, editUser: PropTypes.func,
deleteUser: PropTypes.func, deleteUser: PropTypes.func,
failRegexEvent: PropTypes.func,
noChangeEvent: PropTypes.func, noChangeEvent: PropTypes.func,
updateUsers: PropTypes.func, updateUsers: PropTypes.func,
}; };

View File

@@ -31,7 +31,6 @@ var editUserJsx = (callbackSpy, empty) => (
editUser={callbackSpy} editUser={callbackSpy}
updateUsers={callbackSpy} updateUsers={callbackSpy}
history={{ push: () => {} }} history={{ push: () => {} }}
failRegexEvent={callbackSpy}
noChangeEvent={callbackSpy} noChangeEvent={callbackSpy}
/> />
</HashRouter> </HashRouter>

View File

@@ -41,10 +41,7 @@ const withAPI = withProps(() => ({
jhapiRequest("/users/" + username, "GET") jhapiRequest("/users/" + username, "GET")
.then((data) => data.status) .then((data) => data.status)
.then((data) => (data > 200 ? false : true)), .then((data) => (data > 200 ? false : true)),
// Temporarily Unused
failRegexEvent: () => {
return null;
},
noChangeEvent: () => { noChangeEvent: () => {
return null; return null;
}, },