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 (
|
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,
|
||||||
|
@@ -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: () => {} }}
|
||||||
/>
|
/>
|
||||||
|
@@ -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,
|
||||||
}),
|
}),
|
||||||
|
@@ -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,
|
||||||
};
|
};
|
||||||
|
@@ -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>
|
||||||
|
@@ -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;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user