update usePatch, implement actions
This commit is contained in:
1 parent
aae1fefb31
commit
f9d0ab5e07
7 files changed
+181
-131
No files matched your search
@@ -52,11 +52,7 @@ const UptimeDetailsPage = () => {
|
||||
{}
|
||||
);
|
||||
|
||||
const {
|
||||
patch,
|
||||
loading: isPatching,
|
||||
error: postError,
|
||||
} = usePatch<ApiResponse>(`/monitors/${id}/active`);
|
||||
const { patch, loading: isPatching, error: postError } = usePatch<ApiResponse>();
|
||||
|
||||
const monitor: IMonitor = response?.data?.monitor;
|
||||
|
||||
|
||||
Reference in new issue
Block a user