moving to elements

This commit is contained in:
Elijah Lucian
2021-07-13 17:51:30 -06:00
parent 2b94223389
commit 49a3fa1d5f
5 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ import { useState, useEffect } from 'react'
import { Password, User } from '../../types'
import { useUserContext } from '../../contexts/UserContext'
import { message } from 'antd'
import { Button } from '../../elements/Button'
export const UserForm = () => {
const { user } = useUserContext()
@@ -78,9 +79,9 @@ export const UserForm = () => {
onChange={(e) => setPasswordConfirm(e.target.value)}
/>
</label>
<button type="submit" disabled={!valid}>
<Button htmlType="submit" disabled={!valid}>
Save
</button>
</Button>
</form>
</>
)