Skip to content

Commit f86be7b

Browse files
committed
Merge branch 'dev' into analytics
2 parents 76c9542 + 7bb89b2 commit f86be7b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/(main)/settings/teams/TeamJoinForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { useApi, useMessages, useModified } from '@/components/hooks';
1212

1313
export function TeamJoinForm({ onSave, onClose }: { onSave: () => void; onClose: () => void }) {
14-
const { formatMessage, labels, getMessage } = useMessages();
14+
const { formatMessage, labels } = useMessages();
1515
const { post, useMutation } = useApi();
1616
const { mutate, error } = useMutation({ mutationFn: (data: any) => post('/teams/join', data) });
1717
const ref = useRef(null);
@@ -28,7 +28,7 @@ export function TeamJoinForm({ onSave, onClose }: { onSave: () => void; onClose:
2828
};
2929

3030
return (
31-
<Form ref={ref} onSubmit={handleSubmit} error={error && getMessage(error)}>
31+
<Form ref={ref} onSubmit={handleSubmit} error={error}>
3232
<FormRow label={formatMessage(labels.accessCode)}>
3333
<FormInput name="accessCode" rules={{ required: formatMessage(labels.required) }}>
3434
<TextField autoComplete="off" />

src/app/login/LoginForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Logo from '@/assets/logo.svg';
1616
import styles from './LoginForm.module.css';
1717

1818
export function LoginForm() {
19-
const { formatMessage, labels, getMessage } = useMessages();
19+
const { formatMessage, labels } = useMessages();
2020
const router = useRouter();
2121
const { post, useMutation } = useApi();
2222
const { mutate, error, isPending } = useMutation({
@@ -40,7 +40,7 @@ export function LoginForm() {
4040
<Logo />
4141
</Icon>
4242
<div className={styles.title}>umami</div>
43-
<Form className={styles.form} onSubmit={handleSubmit} error={getMessage(error)}>
43+
<Form className={styles.form} onSubmit={handleSubmit} error={error}>
4444
<FormRow label={formatMessage(labels.username)}>
4545
<FormInput
4646
data-test="input-username"

src/queries/prisma/user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ export async function getUsers(
5151
criteria: UserFindManyArgs,
5252
pageParams?: PageParams,
5353
): Promise<PageResult<User[]>> {
54-
const { query } = pageParams;
54+
const { search } = pageParams;
5555

5656
const where: Prisma.UserWhereInput = {
5757
...criteria.where,
58-
...prisma.getSearchParameters(query, [{ username: 'contains' }]),
58+
...prisma.getSearchParameters(search, [{ username: 'contains' }]),
5959
deletedAt: null,
6060
};
6161

0 commit comments

Comments
 (0)