-
+
+
Home
{isLoading
- ?
Loading...
- : error
- ?
Error: {error.message}
- : (
-
-
Exemple request from API:
-
- {(data).map(item => - {item.name}
)}
-
-
- )}
+? (
+
Loading...
+ )
+: error
+? (
+
Error: {error.message}
+ )
+: (
+
+
Example request from API:
+
+ {data.map((item) => (
+ - {item.name}
+ ))}
+
+
+ )}
- )
-}
-export default Home
+ );
+};
+export default Home;
diff --git a/canopeum_frontend/src/pages/UserManagement.tsx b/canopeum_frontend/src/pages/UserManagement.tsx
index da41e37c4..95772e6d2 100644
--- a/canopeum_frontend/src/pages/UserManagement.tsx
+++ b/canopeum_frontend/src/pages/UserManagement.tsx
@@ -1,11 +1,11 @@
-export default function UserManagement() {
- return (
-
- );
-}
+const UserManagement = () => (
+
+);
+
+export default UserManagement;
diff --git a/canopeum_frontend/src/services/apiInterface.ts b/canopeum_frontend/src/services/apiInterface.ts
index 303cedbab..aa9ac6533 100644
--- a/canopeum_frontend/src/services/apiInterface.ts
+++ b/canopeum_frontend/src/services/apiInterface.ts
@@ -1,5 +1,6 @@
import {
AnnouncementClient,
+ AuthenticationClient,
BatchClient,
CommentClient,
ContactClient,
@@ -8,8 +9,7 @@ import {
SiteClient,
UserClient,
WidgetClient,
- AuthenticationClient,
-} from "./api";
+} from './api';
const API_URL = String(import.meta.env.VITE_API_URL);