mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 23:42:59 +00:00
Lint and make App (Component) functional
This commit is contained in:
@@ -15,7 +15,7 @@ const withUserAPI = withProps((props) => ({
|
||||
"Cannot change username - either contains special characters or is too short."
|
||||
),
|
||||
noChangeEvent: () => {
|
||||
returns
|
||||
returns;
|
||||
},
|
||||
refreshUserData: () =>
|
||||
jhapiRequest("/users", "GET")
|
||||
|
@@ -81,7 +81,7 @@ const EditUser = (props) => {
|
||||
className="btn btn-primary"
|
||||
onClick={() => {
|
||||
if (updatedUsername == "" && admin == has_admin) {
|
||||
noChangeEvent()
|
||||
noChangeEvent();
|
||||
return;
|
||||
} else if (updatedUsername != "") {
|
||||
if (
|
||||
@@ -136,6 +136,7 @@ EditUser.propTypes = {
|
||||
editUser: PropTypes.func,
|
||||
deleteUser: PropTypes.func,
|
||||
failRegexEvent: PropTypes.func,
|
||||
noChangeEvent: PropTypes.func,
|
||||
refreshUserData: PropTypes.func,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user