This commit is contained in:
Laux Dev
2026-03-06 09:03:01 +08:00
7 changed files with 14 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ import globalStyle from "../../globalStyle.module.css";
import createAgentStyle from "./styles.module.css"; import createAgentStyle from "./styles.module.css";
import Prompts from "@/app/components/prompts/Prompts"; import Prompts from "@/app/components/prompts/Prompts";
const Page = () => { const ViewAgentPage = () => {
const [isChecked, setIsChecked] = useState(false); const [isChecked, setIsChecked] = useState(false);
const handleCheckboxChange = (e) => { const handleCheckboxChange = (e) => {
@@ -103,4 +103,4 @@ const Page = () => {
); );
}; };
export default Page; export default ViewAgentPage;

View File

@@ -9,7 +9,7 @@ import Prompts from "@/app/components/prompts/Prompts";
import useAgentForm from "@/app/hooks/useAgentForm"; import useAgentForm from "@/app/hooks/useAgentForm";
import Alert from "@/app/components/alerts/Alert"; import Alert from "@/app/components/alerts/Alert";
const Page = () => { const AddAgentPage = () => {
const [isChecked, setIsChecked] = useState(false); const [isChecked, setIsChecked] = useState(false);
const handleCheckboxChange = (e) => { const handleCheckboxChange = (e) => {
@@ -136,4 +136,4 @@ const Page = () => {
); );
}; };
export default Page; export default AddAgentPage;

View File

@@ -9,7 +9,7 @@ import Prompts from "@/app/components/prompts/Prompts";
import useRoleForm from "@/app/hooks/useRolesForm"; import useRoleForm from "@/app/hooks/useRolesForm";
import Alert from "@/app/components/alerts/Alert"; import Alert from "@/app/components/alerts/Alert";
const Page = () => { const AddCredentialPage = () => {
const { const {
register, register,
handleSubmit, handleSubmit,
@@ -125,4 +125,4 @@ const Page = () => {
); );
}; };
export default Page; export default AddCredentialPage;

View File

@@ -5,7 +5,7 @@ import editRoleStyle from "./styles.module.css";
import TextField from "@/app/components/fields/textfield"; import TextField from "@/app/components/fields/textfield";
import Permissions from "@/app/components/permissions/Permissions"; import Permissions from "@/app/components/permissions/Permissions";
const page = () => { const ViewRolePage = () => {
const sampleData = [ const sampleData = [
{ permission: "organization.delete" }, { permission: "organization.delete" },
{ permission: "user.create" }, { permission: "user.create" },
@@ -86,4 +86,4 @@ const page = () => {
); );
}; };
export default page; export default ViewRolePage;

View File

@@ -8,7 +8,7 @@ import Permissions from "@/app/components/permissions/Permissions";
import useUserForm from "@/app/hooks/useUserForm"; import useUserForm from "@/app/hooks/useUserForm";
import Alert from "@/app/components/alerts/Alert"; import Alert from "@/app/components/alerts/Alert";
const page = () => { const AddRolePage = () => {
const { const {
register, register,
handleSubmit, handleSubmit,
@@ -99,4 +99,4 @@ const page = () => {
); );
}; };
export default page; export default AddRolePage;

View File

@@ -8,7 +8,7 @@ import TextField from "@/app/components/fields/textfield";
import SelectField from "@/app/components/select/SelectField"; import SelectField from "@/app/components/select/SelectField";
import Permissions from "@/app/components/permissions/Permissions"; import Permissions from "@/app/components/permissions/Permissions";
const Page = () => { const ViewUserPage = () => {
const sampleData = [ const sampleData = [
{ permission: "organization.delete" }, { permission: "organization.delete" },
{ permission: "user.create" }, { permission: "user.create" },
@@ -104,4 +104,4 @@ const Page = () => {
); );
}; };
export default Page; export default ViewUserPage;

View File

@@ -8,7 +8,7 @@ import SelectField from "@/app/components/select/SelectField";
import Permissions from "@/app/components/permissions/Permissions"; import Permissions from "@/app/components/permissions/Permissions";
import useUserForm from "@/app/hooks/useUserForm"; import useUserForm from "@/app/hooks/useUserForm";
import Alert from "@/app/components/alerts/Alert"; import Alert from "@/app/components/alerts/Alert";
const page = () => { const AddUserPage = () => {
const { const {
register, register,
handleSubmit, handleSubmit,
@@ -109,4 +109,4 @@ const page = () => {
); );
}; };
export default page; export default AddUserPage;