feat: implement add device functionality with validation and error handling; refactor related components for improved state management

This commit is contained in:
2025-06-25 20:10:32 +05:00
parent 406733b360
commit d2b281281f
3 changed files with 115 additions and 102 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export async function handleApiResponse<T>(
if (response.status === 403) {
throw new Error(
responseData.message ||
"Forbidden; you do not have permission to access this resource.",
"Forbidden; you do not have permission to access this resource.",
);
}