+
Gestisci utenti
-
+
+
)
}
diff --git a/code/frontend/src/routes/PageUsers.module.css b/code/frontend/src/routes/PageUsers.module.css
index 83b0a1a..79b9aad 100644
--- a/code/frontend/src/routes/PageUsers.module.css
+++ b/code/frontend/src/routes/PageUsers.module.css
@@ -2,11 +2,11 @@
display: grid;
grid-template-areas:
- "a a"
- "b c"
- "d d";
- grid-template-rows: auto auto 1fr;
- grid-template-columns: 1fr 1fr;
+ "a"
+ "b"
+ "c";
+ grid-template-rows: auto 1fr auto;
+ grid-template-columns: 1fr;
grid-gap: 10px;
@@ -18,14 +18,10 @@
grid-area: a;
}
-.CreateUser {
+.UserList {
grid-area: b;
}
-.DeleteUser {
+.CreateUser {
grid-area: c;
}
-
-.UserList {
- grid-area: d;
-}
\ No newline at end of file
diff --git a/code/frontend/src/utils/makeURLSearchParams.js b/code/frontend/src/utils/makeURLSearchParams.js
new file mode 100644
index 0000000..c699be4
--- /dev/null
+++ b/code/frontend/src/utils/makeURLSearchParams.js
@@ -0,0 +1,19 @@
+import isString from "is-string"
+
+
+export default function makeURLSearchParams(obj) {
+ let usp = new URLSearchParams()
+ for(const key in obj) {
+ if(!obj.hasOwnProperty(key)) {
+ return
+ }
+ const value = obj[key]
+ if(isString(value)) {
+ usp.set(key, value)
+ }
+ else {
+ usp.set(key, JSON.stringify(value))
+ }
+ }
+ return usp
+}
\ No newline at end of file