nice overall component done

This commit is contained in:
Arjun Patel
2022-01-14 02:38:15 -08:00
parent 5b683f2bde
commit dbb17d81b4
3 changed files with 68 additions and 13 deletions
+4 -2
View File
@@ -44,7 +44,9 @@ export default function Profile() {
})();
}, [])
async function handleSubmit() {
async function handleSubmit(e) {
e.preventDefault();
if (!firstName) {
setError('Must input first name')
return
@@ -133,7 +135,7 @@ export default function Profile() {
{
user && user.nickName ?
<>
<button className="bg-gray-100 py-2 px-5 rounded text-gray-400">Cancel</button>
<button onClick={() => router.push('/teams') } className="bg-gray-100 py-2 px-5 rounded text-gray-400">Cancel</button>
<button type="submit" className='text-sm text-white font-semibold py-2 px-5 bg-teal-500 rounded'>
Save
</button>