Fix warnings related to line length.
This commit is contained in:
parent
a0139f4157
commit
fcb4104856
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ function ImageUpload({
|
||||||
}) {
|
}) {
|
||||||
const uploadImageRef = useRef(null);
|
const uploadImageRef = useRef(null);
|
||||||
|
|
||||||
// Uploads the selected image and passes the resulting URI to the onUpload function provided in component props.
|
// Uploads image and passes resulting URI to onUpload function provided in component props.
|
||||||
function uploadImage(e) {
|
function uploadImage(e) {
|
||||||
const file = e.target.files.item(0);
|
const file = e.target.files.item(0);
|
||||||
if (file !== null) { // TODO Add upload progress spinner
|
if (file !== null) { // TODO Add upload progress spinner
|
||||||
|
|
|
@ -37,7 +37,7 @@ function ProfileEditor({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enables/disables save button depending on whether or not the username is different than the current.
|
// Enables/disables button depending on if the typed displayname is different than the current.
|
||||||
function onDisplayNameInputChange() {
|
function onDisplayNameInputChange() {
|
||||||
setDisabled((username === displayNameRef.current.value) || displayNameRef.current.value === '' || displayNameRef.current.value == null);
|
setDisabled((username === displayNameRef.current.value) || displayNameRef.current.value === '' || displayNameRef.current.value == null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue