|
|
|
@ -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> |
|
|
|
|
</> |
|
|
|
|
) |
|
|
|
|