clean code
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
email: string;
|
email: string;
|
||||||
password: string; // Note: Passwords should not be stored in plain text
|
password: string; // Note: Passwords should not be stored in plain text
|
||||||
role: string;
|
role: string;
|
||||||
nip: string;
|
|
||||||
full_name: string;
|
full_name: string;
|
||||||
phone: string;
|
phone: string;
|
||||||
address: string;
|
address: string;
|
||||||
@@ -52,7 +51,6 @@
|
|||||||
{ key: "email", title: "Email" },
|
{ key: "email", title: "Email" },
|
||||||
{ key: "password", title: "Password" },
|
{ key: "password", title: "Password" },
|
||||||
{ key: "role", title: "Role" },
|
{ key: "role", title: "Role" },
|
||||||
{ key: "nip", title: "NIP" },
|
|
||||||
{ key: "full_name", title: "Full Name" },
|
{ key: "full_name", title: "Full Name" },
|
||||||
{ key: "phone", title: "Phone" },
|
{ key: "phone", title: "Phone" },
|
||||||
{ key: "address", title: "Address" },
|
{ key: "address", title: "Address" },
|
||||||
@@ -179,10 +177,7 @@
|
|||||||
const requiredFields = [
|
const requiredFields = [
|
||||||
"email",
|
"email",
|
||||||
"role",
|
"role",
|
||||||
"nip",
|
|
||||||
"full_name",
|
"full_name",
|
||||||
"phone",
|
|
||||||
"address",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
requiredFields.forEach((field) => {
|
requiredFields.forEach((field) => {
|
||||||
@@ -312,7 +307,6 @@
|
|||||||
newUser = {
|
newUser = {
|
||||||
email: "",
|
email: "",
|
||||||
role: "user",
|
role: "user",
|
||||||
nip: "",
|
|
||||||
full_name: "",
|
full_name: "",
|
||||||
phone: "",
|
phone: "",
|
||||||
address: "",
|
address: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user