empty view updated
This commit is contained in:
1 parent
422d13ef25
commit
465e673f4b
5 files changed
+77
-28
No files matched your search
@@ -102,7 +102,11 @@ export const ChecksTable = ({
|
||||
|
||||
return (
|
||||
<Box>
|
||||
<Table headers={headers} data={checks} />
|
||||
<Table
|
||||
headers={headers}
|
||||
data={checks}
|
||||
emptyViewText={t("checks.table.empty")}
|
||||
/>
|
||||
<Pagination
|
||||
component="div"
|
||||
count={count}
|
||||
|
||||
@@ -160,6 +160,8 @@ export const IncidentTable = ({
|
||||
onRowClick={(row) => {
|
||||
navigate(`/incidents/${row._id}`);
|
||||
}}
|
||||
emptyViewPositive
|
||||
emptyViewText={t("incidents.table.empty")}
|
||||
/>
|
||||
<Pagination
|
||||
component="div"
|
||||
|
||||
@@ -8,6 +8,7 @@ import type { ApiResponse } from "@/hooks/UseApi";
|
||||
import type { IUser } from "@/types/user";
|
||||
import { useAppDispatch } from "@/hooks/AppHooks";
|
||||
import { setUser } from "@/features/authSlice";
|
||||
import { mutate } from "swr";
|
||||
|
||||
const TeamsConfigPage = () => {
|
||||
type FormValues = Omit<z.infer<typeof teamSchema>, "roleId">;
|
||||
@@ -28,6 +29,7 @@ const TeamsConfigPage = () => {
|
||||
description: data.description,
|
||||
};
|
||||
await patch(`/teams/${id}`, toSubmit);
|
||||
mutate("/teams/joined");
|
||||
const me = await getOnDemand("/me");
|
||||
if (me?.data) {
|
||||
dispatch(setUser(me.data));
|
||||
|
||||
Reference in new issue
Block a user