@@ -36,29 +36,25 @@ function randomizeAvatar() {
36
36
<template >
37
37
<div class =" space-y-6" >
38
38
<div v-if =" isEditing && copy" class =" flex flex-col items-center mx-auto" >
39
- <img :key =" copy.photoURL" class =" w-40 h-40 mx-auto rounded-full" :src =" copy.photoURL" >
40
- <button class =" mt-1" @click =" randomizeAvatar" >
41
- Randomize photo
42
- </button >
39
+ <img :key =" copy.photoURL" class =" w-40 h-40 mx-auto rounded-full" :src =" copy.photoURL" />
40
+ <button class =" mt-1" @click =" randomizeAvatar" >Randomize photo</button >
43
41
</div >
44
- <img v-else class =" w-40 h-40 mx-auto rounded-full" :src =" contact.photoURL" >
42
+ <img v-else class =" w-40 h-40 mx-auto rounded-full" :src =" contact.photoURL" / >
45
43
46
44
<div class =" space-y-2" >
47
45
<div class =" space-y-1 font-medium leading-6 text-center" >
48
46
<form v-if =" copy" class =" flex flex-col max-w-md mx-auto" @submit.prevent =" saveEdits()" >
49
47
<label for =" contact-edit-first-name" > First Name </label >
50
- <input id =" contact-edit-first-name" v-model =" copy.firstName" type =" text" >
48
+ <input id =" contact-edit-first-name" v-model =" copy.firstName" type =" text" / >
51
49
<label for =" contact-edit-last-name" > Last Name </label >
52
- <input id =" contact-edit-last-name" v-model =" copy.lastName" type =" text" >
50
+ <input id =" contact-edit-last-name" v-model =" copy.lastName" type =" text" / >
53
51
<label for =" contact-edit-bio" > Bio: </label >
54
52
<textarea id =" contact-edit-bio" v-model =" copy.bio" cols =" 30" rows =" 5" />
55
53
56
- <hr >
54
+ <hr / >
57
55
58
56
<button >Save</button >
59
- <button type =" button" @click =" cancelEdit()" >
60
- Cancel
61
- </button >
57
+ <button type =" button" @click =" cancelEdit()" >Cancel</button >
62
58
</form >
63
59
64
60
<template v-else >
@@ -74,12 +70,10 @@ function randomizeAvatar() {
74
70
</div >
75
71
76
72
<template v-if =" ! isEditing " >
77
- <hr >
73
+ <hr / >
78
74
79
75
<div class =" flex justify-end px-6 mx-auto space-x-2" >
80
- <button @click =" startEdit()" >
81
- Edit
82
- </button >
76
+ <button @click =" startEdit()" >Edit</button >
83
77
</div >
84
78
</template >
85
79
</div >
0 commit comments