Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
import UserStatusMenu from '../../../components/UserStatusMenu';
import UserAvatarEditor from '../../../components/avatar/UserAvatarEditor';
import { useUpdateAvatar } from '../../../hooks/useUpdateAvatar';
import { USER_STATUS_TEXT_MAX_LENGTH, BIO_TEXT_MAX_LENGTH } from '../../../lib/constants';

Check failure on line 37 in apps/meteor/client/views/account/profile/AccountProfileForm.tsx

View workflow job for this annotation

GitHub Actions / 🔎 Code Check / Code Lint

There should be at least one empty line between import groups
import { VisuallyHidden } from 'react-aria';

Check failure on line 38 in apps/meteor/client/views/account/profile/AccountProfileForm.tsx

View workflow job for this annotation

GitHub Actions / 🔎 Code Check / Code Lint

`react-aria` import should occur before import of `react-hook-form`

const AccountProfileForm = (props: AllHTMLAttributes<HTMLFormElement>): ReactElement => {
const t = useTranslation();
Expand Down Expand Up @@ -142,6 +143,9 @@
return (
<Box {...props} is='form' autoComplete='off' onSubmit={handleSubmit(handleSave)}>
<FieldGroup>
<VisuallyHidden>
<Box is='legend'>{t('Profile_details')}</Box>
</VisuallyHidden>
<Field>
<Controller
control={control}
Expand Down Expand Up @@ -240,7 +244,12 @@
<Controller
control={control}
name='statusText'
rules={{ maxLength: { value: USER_STATUS_TEXT_MAX_LENGTH, message: t('Max_length_is', USER_STATUS_TEXT_MAX_LENGTH) } }}
rules={{
maxLength: {
value: USER_STATUS_TEXT_MAX_LENGTH,
message: t('Max_length_is', USER_STATUS_TEXT_MAX_LENGTH),
},
}}
render={({ field }) => (
<TextInput
{...field}
Expand Down
Loading