Skip to content

Commit c78c1cc

Browse files
committed
chore: add disabled input for work email field
1 parent be63445 commit c78c1cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/modals/team-member/team-member-modal.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ export const TeamMemberModal = ({
135135
{rest.isEditMode ? "Work email" : "Login email"}
136136
</FormLabel>
137137
<FormControl>
138-
<Input disabled={isSubmitting} type="email" {...field} />
138+
<Input
139+
disabled={isSubmitting || rest.isEditMode}
140+
type="email"
141+
{...field}
142+
/>
139143
</FormControl>
140144
<FormMessage className="text-xs font-light" />
141145
</FormItem>

0 commit comments

Comments
 (0)