mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 18:44:10 +00:00
Merge pull request #4172 from liliyao2022/patch-10
Deleted unused failRegexEvent
This commit is contained in:
@@ -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,
|
||||
|
@@ -28,7 +28,6 @@ var addUserJsx = (spy, spy2, spy3) => (
|
||||
<HashRouter>
|
||||
<AddUser
|
||||
addUsers={spy}
|
||||
failRegexEvent={spy2 || spy}
|
||||
updateUsers={spy3 || spy2 || spy}
|
||||
history={{ push: () => {} }}
|
||||
/>
|
||||
|
@@ -108,7 +108,6 @@ const CreateGroup = (props) => {
|
||||
CreateGroup.propTypes = {
|
||||
createGroup: PropTypes.func,
|
||||
updateGroups: PropTypes.func,
|
||||
failRegexEvent: PropTypes.func,
|
||||
history: PropTypes.shape({
|
||||
push: PropTypes.func,
|
||||
}),
|
||||
|
@@ -170,7 +170,6 @@ EditUser.propTypes = {
|
||||
}),
|
||||
editUser: PropTypes.func,
|
||||
deleteUser: PropTypes.func,
|
||||
failRegexEvent: PropTypes.func,
|
||||
noChangeEvent: PropTypes.func,
|
||||
updateUsers: PropTypes.func,
|
||||
};
|
||||
|
@@ -31,7 +31,6 @@ var editUserJsx = (callbackSpy, empty) => (
|
||||
editUser={callbackSpy}
|
||||
updateUsers={callbackSpy}
|
||||
history={{ push: () => {} }}
|
||||
failRegexEvent={callbackSpy}
|
||||
noChangeEvent={callbackSpy}
|
||||
/>
|
||||
</HashRouter>
|
||||
|
@@ -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;
|
||||
},
|
||||
|
Reference in New Issue
Block a user