Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Feb 9, 2024
1 parent 3285d46 commit e47c996
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"ABOUT": "About",
"MENU": "Menu",
"SETTINGS": "Settings",
"ORDERS": "Bestellungen",
"ORDERS": "Orders",
"USERS": "Users"
},
"Meal": {
Expand Down
7 changes: 5 additions & 2 deletions web/src/app/[locale]/(main)/(user)/users/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { GET_ALL_USERS_ADMIN } from "@/documents/query/user";
import { useGqlQuery } from "@/fetcher";
import { SortOrder } from "@/gql/graphql";
import { Link } from "@/navigation";
import {
Table,
Expand All @@ -19,7 +20,9 @@ interface UsersPageProps {}

export default function UsersPage({}: UsersPageProps) {
const t = useTranslations<"User">();
const { data: { getAllUsersAdmin } = {} } = useGqlQuery(GET_ALL_USERS_ADMIN);
const { data: { getAllUsersAdmin } = {} } = useGqlQuery(GET_ALL_USERS_ADMIN, {
orderBy: { id: SortOrder.Asc },
});

return (
<>
Expand Down Expand Up @@ -47,7 +50,7 @@ export default function UsersPage({}: UsersPageProps) {
</TableCell>
<TableCell className="flex justify-center">
<Link href={`/user/${user.id}`}>
<MdEdit className="hover:text-primary-500 text-xl" />
<MdEdit className="text-xl hover:text-primary-500" />
</Link>
</TableCell>
</TableRow>
Expand Down

0 comments on commit e47c996

Please sign in to comment.