fix user password edit and fix prisma schema for updated_at columns

This commit is contained in:
Francis Cao 2023-04-20 10:46:58 -07:00
parent d2c9c45461
commit fa3659fcf6
4 changed files with 10 additions and 10 deletions

View file

@ -44,7 +44,7 @@ export default function TeamAddWebsiteForm({ teamId, onSave, onClose }) {
<>
<Form onSubmit={handleSubmit} error={error} ref={formRef}>
<FormRow label={formatMessage(labels.websites)}>
<Dropdown items={websites} onChange={handleAddWebsite}>
<Dropdown items={websites} onChange={handleAddWebsite} style={{ width: 300 }}>
{({ id, name }) => <Item key={id}>{name}</Item>}
</Dropdown>
</FormRow>

View file

@ -46,7 +46,7 @@ export default function UserEditForm({ userId, data, onSave }) {
</FormRow>
<FormRow label={formatMessage(labels.password)}>
<FormInput
name="newPassword"
name="password"
rules={{
minLength: { value: 8, message: formatMessage(messages.minPasswordLength, { n: 8 }) },
}}