diff --git a/packages/adminPage/src/features/users/Users.jsx b/packages/adminPage/src/features/users/Users.jsx
index 69c5f6b..1e30a52 100644
--- a/packages/adminPage/src/features/users/Users.jsx
+++ b/packages/adminPage/src/features/users/Users.jsx
@@ -1,10 +1,9 @@
import { useQuery } from "@common/dataFetch/getQuery.js";
import { fetchServer } from "@common/dataFetch/fetchServer.js";
import Pagination from "@admin/components/Pagination";
-import { useState } from "react";
-export default function Comments({ searchParams }) {
- const [page, setPage] = useState(1);
+export default function Comments({ searchParams, page, setPage }) {
+
const data = useQuery(
"admin-users",
() =>
diff --git a/packages/adminPage/src/features/users/index.jsx b/packages/adminPage/src/features/users/index.jsx
index 69b547b..ce683b0 100644
--- a/packages/adminPage/src/features/users/index.jsx
+++ b/packages/adminPage/src/features/users/index.jsx
@@ -8,11 +8,13 @@ export default function AdminCommentID() {
const [formString, setFormString] = useState("");
const [searchString, setSearchString] = useState("");
const [category, setCategory] = useState("userName");
+ const [page, setPage] = useState(1);
const [searchParams, setSearchParams] = useSearchParams();
function searchComment(e) {
e.preventDefault();
+ setPage(1);
setSearchString(formString);
setSearchParams({ search: formString, field: category });
}
@@ -62,7 +64,12 @@ export default function AdminCommentID() {
}>
-
+
);