Update hooks and add content for room page

This commit is contained in:
2023-11-01 14:25:45 +07:00
parent 4c92c2dcc0
commit 47a4c1be41
13 changed files with 770 additions and 48 deletions
+5 -1
View File
@@ -121,6 +121,7 @@ const UserTable = ({
const { data, isPending, errorMsg } = useFetch(
'users',
'phone',
phoneSearch,
sortByValue,
orderByValue,
@@ -146,7 +147,10 @@ const UserTable = ({
<OrderBy options={USER_PAGE.ORDERBY_OPTIONS} />
<SortBy options={USER_PAGE.SORTBY_OPTIONS} />
<Search setPhoneSearch={setPhoneSearch} />
<Search
setValueSearch={setPhoneSearch}
setPlaceHolder="Search by phone..."
/>
</StyledOperationTable>
{isPending && <Spinner />}