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 (
<>
@@ -122,7 +122,6 @@ const AddUser = (props) => {
AddUser.propTypes = {
addUsers: PropTypes.func,
failRegexEvent: PropTypes.func,
updateUsers: PropTypes.func,
history: PropTypes.shape({
push: PropTypes.func,

View File

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

View File

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

View File

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

View File

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

View File

@@ -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;
},