Skip to content

Commit 542b089

Browse files
committed
feat: upgrade signup page
1 parent 91b0b10 commit 542b089

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

apps/web/@/molecules/auth/sign-up/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function SignUp() {
8585
<FormControl>
8686
<Input
8787
id="password"
88-
placeholder={t("password")}
88+
placeholder="********"
8989
type="password"
9090
autoCapitalize="none"
9191
autoComplete="password"
@@ -104,7 +104,7 @@ export default function SignUp() {
104104
<FormControl>
105105
<Input
106106
id="confirmPassword"
107-
placeholder={t("confirm_password_placeholder")}
107+
placeholder="********"
108108
type="password"
109109
autoCapitalize="none"
110110
autoComplete="password"

packages/database/src/tags/queries.ts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,25 @@ import { tagItemSelect, tagListSelect, TTagItem, TTagListItem } from "./selects"
1111
type GetTagsProps = {
1212
page?: number
1313
limit?: number
14-
query?: string
15-
sorting?: any[]
14+
orderBy?: Prisma.TagsOrderByRelevanceInput
1615
}
1716

1817
export const getTags = async ({
1918
page = 1,
2019
limit = LIMIT_PER_PAGE,
21-
query = "",
22-
sorting,
20+
orderBy,
2321
}: GetTagsProps): Promise<IActionReturn<IGetListResponse<TTagItem>>> => {
24-
const tagQuery: Prisma.TagsFindManyArgs = {
22+
const tagQuery = {
2523
select: tagListSelect,
2624
take: Number(limit) || 10,
2725
skip: (page > 0 ? page - 1 : 0) * Number(limit),
2826
where: {
2927
name: {
30-
contains: query,
28+
contains: orderBy?.search,
3129
mode: "insensitive",
3230
},
3331
},
34-
}
35-
36-
if (sorting) {
37-
tagQuery.orderBy = sorting?.map((sort) => ({
38-
[sort.id]: sort.desc ? "desc" : "asc",
39-
}))
32+
orderBy,
4033
}
4134

4235
try {
@@ -57,6 +50,8 @@ export const getTags = async ({
5750
},
5851
}
5952
} catch (error) {
53+
console.log("error", error)
54+
6055
throw {
6156
data: {
6257
data: [],

0 commit comments

Comments
 (0)