- {recordsSearch !== ''
- ? 'No matching results'
- : "No recordings available yet."}
+
+ {recordsSearch !== '' ? 'No matching results' : 'No recordings available yet.'}
diff --git a/frontend/app/components/Client/Users/components/UserList/UserList.tsx b/frontend/app/components/Client/Users/components/UserList/UserList.tsx
index f18e3586c..5ad9993eb 100644
--- a/frontend/app/components/Client/Users/components/UserList/UserList.tsx
+++ b/frontend/app/components/Client/Users/components/UserList/UserList.tsx
@@ -7,6 +7,7 @@ import { Pagination, NoContent, Loader } from 'UI';
import { useModal } from 'App/components/Modal';
import UserForm from '../UserForm';
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
+import { filterList } from 'App/utils';
interface Props {
isOnboarding?: boolean;
@@ -20,15 +21,17 @@ function UserList(props: Props) {
const searchQuery = useObserver(() => userStore.searchQuery);
const { showModal } = useModal();
- const filterList = (list) => {
- const filterRE = getRE(searchQuery, 'i');
- let _list = list.filter((w) => {
- return filterRE.test(w.email) || filterRE.test(w.roleName);
- });
- return _list;
- };
+ // const filterList = (list) => {
+ // const filterRE = getRE(searchQuery, 'i');
+ // let _list = list.filter((w) => {
+ // return filterRE.test(w.email) || filterRE.test(w.roleName);
+ // });
+ // return _list;
+ // };
+ console.log(users)
+ const getList = (list) => filterList(list, searchQuery, ['email', 'roleName', 'name'])
- const list: any = searchQuery !== '' ? filterList(users) : users;
+ const list: any = searchQuery !== '' ? getList(users) : users;
const length = list.length;
useEffect(() => {
diff --git a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx
index ad0cecdc9..9a8e9de22 100644
--- a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx
+++ b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx
@@ -36,7 +36,7 @@ function Header({ history, siteId }: { history: any; siteId: string }) {
- A Dashboard is a collection of Metrics that can be shared across teams.
+ A Dashboard is a collection of Cards that can be shared across teams.