feat: added placeholder login form

This commit is contained in:
Roberto Tonino
2021-05-19 21:09:58 +02:00
parent eeb3b8aad1
commit 6e7a29ff42
5 changed files with 1414 additions and 1367 deletions

12
src/utils/forms.js Normal file
View File

@@ -0,0 +1,12 @@
/**
* @param {HTMLFormElement} formEl
* @returns {function(item: string): {}}
* @since 1.6.1
*/
export const getFormItem = formEl => item => {
const element = formEl.elements.namedItem(item)
return {
[item]: element.value
}
}