Design improvement.

This commit is contained in:
Daniel
2022-06-06 09:51:21 +04:30
parent ac73f4fe09
commit 9fddd7ab5b
7 changed files with 27 additions and 13 deletions
+3 -4
View File
@@ -34,12 +34,11 @@ const addItem = async (name, link, tag, reFetch, onExit, SetLoader, method, id=n
.then(() => {SetLoader(false)});
onExit();
} else if(name === '' && link === '') {
onExit()
SetLoader(false)
} else {
} else if(!isValidHttpUrl(link) && link !== '') {
SetLoader(false)
alert('Please make sure the link is valid.\n\n(i.e. starts with "http"/"https")');
} else {
SetLoader(false)
}
}