From 62c438eed015d78684cff5cb4ecb3e31e9836d03 Mon Sep 17 00:00:00 2001
From: Laux Dev <2201104208@student.buksu.edu.ph>
Date: Tue, 3 Mar 2026 14:07:22 +0800
Subject: [PATCH] new component
---
frontend/src/app/agents/page.jsx | 67 ++-----------------
.../components/actionButton/ActionButton.jsx | 8 +++
.../components/actionButton/styles.module.css | 21 ++++++
frontend/src/app/credentials/page.jsx | 5 +-
.../src/app/credentials/styles.module.css | 21 ------
frontend/src/app/organization/page.jsx | 5 +-
frontend/src/app/projects/page.jsx | 9 +--
frontend/src/app/roles/page.jsx | 9 +--
frontend/src/app/users/page.jsx | 9 +--
9 files changed, 47 insertions(+), 107 deletions(-)
create mode 100644 frontend/src/app/components/actionButton/ActionButton.jsx
create mode 100644 frontend/src/app/components/actionButton/styles.module.css
diff --git a/frontend/src/app/agents/page.jsx b/frontend/src/app/agents/page.jsx
index f27f0bd..25891e7 100644
--- a/frontend/src/app/agents/page.jsx
+++ b/frontend/src/app/agents/page.jsx
@@ -5,6 +5,9 @@ import styles from "./styles.module.css";
import TopHeader from "../components/topHeader/TopHeader";
import globalStyle from "../globalStyle.module.css";
import { useRouter } from "next/navigation";
+import ActionButton from "../components/actionButton/ActionButton";
+import DeleteIcon from "../components/icons/delete";
+import ViewIcon from "../components/icons/view";
const AgentsPage = () => {
const router = useRouter();
@@ -135,70 +138,10 @@ const AgentsPage = () => {
|
diff --git a/frontend/src/app/components/actionButton/ActionButton.jsx b/frontend/src/app/components/actionButton/ActionButton.jsx
new file mode 100644
index 0000000..15ce3ba
--- /dev/null
+++ b/frontend/src/app/components/actionButton/ActionButton.jsx
@@ -0,0 +1,8 @@
+import React from "react";
+import styles from "./styles.module.css";
+
+const ActionButton = ({ icon }) => {
+ return ;
+};
+
+export default ActionButton;
diff --git a/frontend/src/app/components/actionButton/styles.module.css b/frontend/src/app/components/actionButton/styles.module.css
new file mode 100644
index 0000000..b5cdff5
--- /dev/null
+++ b/frontend/src/app/components/actionButton/styles.module.css
@@ -0,0 +1,21 @@
+.iconButton {
+ display: flex;
+ padding: 6px;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ flex-shrink: 0;
+ aspect-ratio: 1/1;
+ background-color: rgba(255, 255, 255, 0);
+ outline: none;
+ border: 1px solid #959aff00;
+ cursor: pointer;
+ border-radius: 50%;
+}
+.iconButton:hover {
+ border: 1px solid #959aff;
+ background: linear-gradient(180deg, #696b95 0%, #20202d 100%);
+}
+.iconButton:hover path {
+ stroke: white;
+}
diff --git a/frontend/src/app/credentials/page.jsx b/frontend/src/app/credentials/page.jsx
index ab7bc33..e1b5fe5 100644
--- a/frontend/src/app/credentials/page.jsx
+++ b/frontend/src/app/credentials/page.jsx
@@ -4,6 +4,7 @@ import globalStyle from "../globalStyle.module.css";
import styles from "./styles.module.css";
import DeleteIcon from "../components/icons/delete";
import SuccessToast from "../components/toast/success/successToast";
+import ActionButton from "../components/actionButton/ActionButton";
const CredentialsPage = () => {
const sampleData = [
{
@@ -83,9 +84,7 @@ const CredentialsPage = () => {
{org.organizationID} |
|
diff --git a/frontend/src/app/credentials/styles.module.css b/frontend/src/app/credentials/styles.module.css
index effa132..3e8b3ec 100644
--- a/frontend/src/app/credentials/styles.module.css
+++ b/frontend/src/app/credentials/styles.module.css
@@ -52,24 +52,3 @@
font-weight: 500;
line-height: normal;
}
-.iconButton {
- display: flex;
- padding: 6px;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- flex-shrink: 0;
- aspect-ratio: 1/1;
- background-color: rgba(255, 255, 255, 0);
- outline: none;
- border: 1px solid #959aff00;
- cursor: pointer;
- border-radius: 50%;
-}
-.iconButton:hover {
- border: 1px solid #959aff;
- background: linear-gradient(180deg, #696b95 0%, #20202d 100%);
-}
-.iconButton:hover path {
- stroke: white;
-}
diff --git a/frontend/src/app/organization/page.jsx b/frontend/src/app/organization/page.jsx
index 2affdad..a02a7bd 100644
--- a/frontend/src/app/organization/page.jsx
+++ b/frontend/src/app/organization/page.jsx
@@ -5,6 +5,7 @@ import TopHeader from "../components/topHeader/TopHeader";
import globalStyle from "../globalStyle.module.css";
import SuccessToast from "../components/toast/success/successToast";
import DeleteIcon from "../components/icons/delete";
+import ActionButton from "../components/actionButton/ActionButton";
const OrganizationPage = () => {
const sampleData = [
@@ -81,9 +82,7 @@ const OrganizationPage = () => {
{org.dateCreated} |
|
diff --git a/frontend/src/app/projects/page.jsx b/frontend/src/app/projects/page.jsx
index f6fd662..2929933 100644
--- a/frontend/src/app/projects/page.jsx
+++ b/frontend/src/app/projects/page.jsx
@@ -7,6 +7,7 @@ import { useRouter } from "next/navigation";
import SuccessToast from "../components/toast/success/successToast";
import DeleteIcon from "../components/icons/delete";
import ViewIcon from "../components/icons/view";
+import ActionButton from "../components/actionButton/ActionButton";
const ProjectsPage = () => {
const router = useRouter();
const sampleData = [
@@ -224,14 +225,10 @@ const ProjectsPage = () => {
|
diff --git a/frontend/src/app/roles/page.jsx b/frontend/src/app/roles/page.jsx
index 6f40df1..45d219e 100644
--- a/frontend/src/app/roles/page.jsx
+++ b/frontend/src/app/roles/page.jsx
@@ -8,6 +8,7 @@ import { useRouter } from "next/navigation";
import ViewIcon from "../components/icons/view";
import DeleteIcon from "../components/icons/delete";
import SuccessToast from "../components/toast/success/successToast";
+import ActionButton from "../components/actionButton/ActionButton";
const RolesPage = () => {
const router = useRouter();
@@ -78,12 +79,8 @@ const RolesPage = () => {
{role.permissions} |
-
-
+ } />
+ } />
|
diff --git a/frontend/src/app/users/page.jsx b/frontend/src/app/users/page.jsx
index a1ac40f..7df43a7 100644
--- a/frontend/src/app/users/page.jsx
+++ b/frontend/src/app/users/page.jsx
@@ -7,6 +7,7 @@ import { useRouter } from "next/navigation";
import ViewIcon from "../components/icons/view";
import DeleteIcon from "../components/icons/delete";
import SuccessToast from "../components/toast/success/successToast";
+import ActionButton from "../components/actionButton/ActionButton";
const UsersPage = () => {
const router = useRouter();
@@ -63,12 +64,8 @@ const UsersPage = () => {
{user.createdAt} |
-
-
+ } />
+ } />
|