diff --git a/frontend/src/app/agents/styles.module.css b/frontend/src/app/agents/styles.module.css
index 05cab2d..2490333 100644
--- a/frontend/src/app/agents/styles.module.css
+++ b/frontend/src/app/agents/styles.module.css
@@ -70,27 +70,6 @@
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;
-}
.actions {
display: flex;
justify-content: start;
diff --git a/frontend/src/app/components/icons/file.jsx b/frontend/src/app/components/icons/file.jsx
new file mode 100644
index 0000000..f663505
--- /dev/null
+++ b/frontend/src/app/components/icons/file.jsx
@@ -0,0 +1,35 @@
+import React from "react";
+
+const FileIcon = (props) => {
+ return (
+
+ );
+};
+
+export default FileIcon;
diff --git a/frontend/src/app/components/toast/success/styles.module.css b/frontend/src/app/components/toast/success/styles.module.css
index 9456a16..bda7ebd 100644
--- a/frontend/src/app/components/toast/success/styles.module.css
+++ b/frontend/src/app/components/toast/success/styles.module.css
@@ -10,6 +10,19 @@
bottom: 25px;
z-index: 11;
right: 20px;
+ animation-name: showToast;
+ animation-duration: 0.15s;
+ animation-timing-function: ease-in-out;
+}
+@keyframes showToast {
+ 0% {
+ opacity: 0;
+ transform: translateX(100%);
+ }
+ 100% {
+ opacity: 1;
+ transform: translateX(0%);
+ }
}
.messageContainer {
display: flex;
diff --git a/frontend/src/app/components/topHeader/TopHeader.jsx b/frontend/src/app/components/topHeader/TopHeader.jsx
index 46ac643..d764201 100644
--- a/frontend/src/app/components/topHeader/TopHeader.jsx
+++ b/frontend/src/app/components/topHeader/TopHeader.jsx
@@ -85,13 +85,11 @@ const TopHeader = (props) => {
)}
{editState || props?.requiredButtons?.includes("save") ? (
<>
-
setTriggerAlert(!triggerAlert)}
- >
-
-
Save
-
+ icon={}
+ />
{
const sampleData = [
@@ -115,77 +118,12 @@ const page = () => {
return (
-
+
{perm.permission}
);
diff --git a/frontend/src/app/roles/[rolesId]/styles.module.css b/frontend/src/app/roles/[rolesId]/styles.module.css
index b2d6884..3b646d4 100644
--- a/frontend/src/app/roles/[rolesId]/styles.module.css
+++ b/frontend/src/app/roles/[rolesId]/styles.module.css
@@ -215,34 +215,3 @@
font-weight: 400;
line-height: normal;
}
-.deleteBtn {
- display: flex;
- align-items: center;
- align-self: stretch;
-}
-.deleteSvg {
- display: flex;
- padding: 6px;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- border: 1px solid #959aff00;
- color: #969af9;
- aspect-ratio: 1/1;
- border-radius: 100px;
-}
-
-.deleteSvg:hover {
- color: #fff;
- stroke-width: 1px;
- stroke: color(display-p3 1 1 1);
- border-radius: 100px;
- border: 1px solid #959aff;
- border: 1px solid color(display-p3 0.5892 0.6031 0.9766);
- background: linear-gradient(180deg, #696b95 0%, #20202d 100%);
- background: linear-gradient(
- 180deg,
- color(display-p3 0.4118 0.4196 0.5725) 0%,
- color(display-p3 0.1241 0.1265 0.1725) 100%
- );
-}
diff --git a/frontend/src/app/roles/styles.module.css b/frontend/src/app/roles/styles.module.css
index a1c4f3c..8179aa8 100644
--- a/frontend/src/app/roles/styles.module.css
+++ b/frontend/src/app/roles/styles.module.css
@@ -67,34 +67,3 @@
gap: 12px;
align-self: stretch;
}
-.viewBtn,
-.deleteBtn {
- display: flex;
- padding: 6px;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- aspect-ratio: 1/1;
- border-radius: 100px;
- color: #969af9;
- border: none;
- border: 1px solid transparent;
- background: transparent;
- outline: none;
- cursor: pointer;
-}
-
-.viewBtn:hover,
-.deleteBtn:hover {
- border-radius: 100px;
- color: #fff;
- color: color(display-p3 1 1 1);
- border: 1px solid #959aff;
- border: 1px solid color(display-p3 0.5892 0.6031 0.9766);
- background: linear-gradient(180deg, #696b95 0%, #20202d 100%);
- background: linear-gradient(
- 180deg,
- color(display-p3 0.4118 0.4196 0.5725) 0%,
- color(display-p3 0.1241 0.1265 0.1725) 100%
- );
-}
diff --git a/frontend/src/app/users/[usersId]/page.jsx b/frontend/src/app/users/[usersId]/page.jsx
index 643eaed..3850e6c 100644
--- a/frontend/src/app/users/[usersId]/page.jsx
+++ b/frontend/src/app/users/[usersId]/page.jsx
@@ -6,6 +6,9 @@ import Prompts from "@/app/components/prompts/Prompts";
import { useState } from "react";
import TextField from "@/app/components/fields/textfield";
import SelectField from "@/app/components/select/SelectField";
+import ActionButton from "@/app/components/actionButton/ActionButton";
+import DeleteIcon from "@/app/components/icons/delete";
+import FileIcon from "@/app/components/icons/file";
const Page = () => {
const sampleData = [
@@ -136,77 +139,12 @@ const Page = () => {
return (
-
+
{perm.permission}
);
diff --git a/frontend/src/app/users/[usersId]/styles.module.css b/frontend/src/app/users/[usersId]/styles.module.css
index ee01963..9a40897 100644
--- a/frontend/src/app/users/[usersId]/styles.module.css
+++ b/frontend/src/app/users/[usersId]/styles.module.css
@@ -237,34 +237,3 @@
font-weight: 400;
line-height: normal;
}
-.deleteBtn {
- display: flex;
- align-items: center;
- align-self: stretch;
-}
-.deleteSvg {
- display: flex;
- padding: 6px;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- border: 1px solid #959aff00;
- color: #969af9;
- aspect-ratio: 1/1;
- border-radius: 100px;
-}
-
-.deleteSvg:hover {
- color: #fff;
- stroke-width: 1px;
- stroke: color(display-p3 1 1 1);
- border-radius: 100px;
- border: 1px solid #959aff;
- border: 1px solid color(display-p3 0.5892 0.6031 0.9766);
- background: linear-gradient(180deg, #696b95 0%, #20202d 100%);
- background: linear-gradient(
- 180deg,
- color(display-p3 0.4118 0.4196 0.5725) 0%,
- color(display-p3 0.1241 0.1265 0.1725) 100%
- );
-}
diff --git a/frontend/src/app/users/styles.module.css b/frontend/src/app/users/styles.module.css
index 4bb610e..fc9fb65 100644
--- a/frontend/src/app/users/styles.module.css
+++ b/frontend/src/app/users/styles.module.css
@@ -66,34 +66,3 @@
gap: 12px;
align-self: stretch;
}
-.viewBtn,
-.deleteBtn {
- display: flex;
- padding: 6px;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- aspect-ratio: 1/1;
- border-radius: 100px;
- color: #969af9;
- border: none;
- border: 1px solid transparent;
- background: transparent;
- outline: none;
- cursor: pointer;
-}
-
-.viewBtn:hover,
-.deleteBtn:hover {
- border-radius: 100px;
- color: #fff;
- color: color(display-p3 1 1 1);
- border: 1px solid #959aff;
- border: 1px solid color(display-p3 0.5892 0.6031 0.9766);
- background: linear-gradient(180deg, #696b95 0%, #20202d 100%);
- background: linear-gradient(
- 180deg,
- color(display-p3 0.4118 0.4196 0.5725) 0%,
- color(display-p3 0.1241 0.1265 0.1725) 100%
- );
-}