|
|
|
@ -4,7 +4,7 @@ import { secretUsersTableColumns } from "../config";
@@ -4,7 +4,7 @@ import { secretUsersTableColumns } from "../config";
|
|
|
|
|
import { CustomTableRow } from "@/components/TableGrid/components"; |
|
|
|
|
import { usePaginationList } from "@/shared"; |
|
|
|
|
import { secretModApi } from "@/api/secret-mod/requests"; |
|
|
|
|
import { useSecretUsersList } from "../states"; |
|
|
|
|
import { useSearchState, useSecretUsersList } from "../states"; |
|
|
|
|
import { useSecretEventsListener } from "../events"; |
|
|
|
|
import "./style.scss"; |
|
|
|
|
import { useSecretUsersEdit } from "../hooks"; |
|
|
|
@ -12,6 +12,7 @@ import { useSecretUsersEdit } from "../hooks";
@@ -12,6 +12,7 @@ import { useSecretUsersEdit } from "../hooks";
|
|
|
|
|
export const SecretUsersTable = () => { |
|
|
|
|
const navigateToUser = () => {}; |
|
|
|
|
const { remove } = useSecretUsersEdit(); |
|
|
|
|
const { value } = useSearchState(); |
|
|
|
|
|
|
|
|
|
const defaultColumnsActive = ["avatarUrl", "name", "email", "actions"]; |
|
|
|
|
|
|
|
|
@ -29,6 +30,12 @@ export const SecretUsersTable = () => {
@@ -29,6 +30,12 @@ export const SecretUsersTable = () => {
|
|
|
|
|
useSecretUsersList.getState().setUsers(paginationList.items); |
|
|
|
|
}, [paginationList.items]); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (value !== null) { |
|
|
|
|
paginationList.setLoadParams({ searchString: value }); |
|
|
|
|
} |
|
|
|
|
}, [value]); |
|
|
|
|
|
|
|
|
|
useSecretEventsListener("addUsers", () => { |
|
|
|
|
paginationList.resetFlatList(); |
|
|
|
|
}); |
|
|
|
|