Input for mobile users done

This commit is contained in:
2021-10-19 20:30:31 -03:00
parent 6b65f9afdc
commit ff02ece0dc
44 changed files with 4399 additions and 23328 deletions

View File

@@ -21,12 +21,16 @@ const Header = ({language, category, displayCategories, setDisplayCategories}) =
if (category) {
console.log(category);
let categoryText = category.split('')
categoryText[0] = categoryText[0].toUpperCase()
if (category !== 'false') {
setCategoryText(categoryText)
console.log(category);
let categoryText = category.split('')
categoryText[0] = categoryText[0].toUpperCase()
setCategoryText(categoryText)
}
}
}, [category])

View File

@@ -0,0 +1,19 @@
import React from 'react'
const LetterInput = ({registerKeys}) => {
const registerInput = (letter) => {
const input = document.getElementById('letter-input')
input.value = ''
}
return (
<div className="letter-input-container">
<input id="letter-input" type="text" onChange={(e) => registerInput(e.target.value) } />
</div>
)
}
export default LetterInput