diff --git a/frontend/src/views/DashboardPage/DashboardPage.tsx b/frontend/src/views/DashboardPage/DashboardPage.tsx
index 3b0effb1f..1cf24dcb4 100644
--- a/frontend/src/views/DashboardPage/DashboardPage.tsx
+++ b/frontend/src/views/DashboardPage/DashboardPage.tsx
@@ -15,6 +15,7 @@ import {
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
import { arrayMove } from "@dnd-kit/sortable";
import {
+ faAngleDown,
faArrowLeft,
faCheck,
faClockRotateLeft,
@@ -29,6 +30,7 @@ import {
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { yupResolver } from "@hookform/resolvers/yup";
+import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
import { useQueryClient } from "@tanstack/react-query";
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
@@ -792,63 +794,11 @@ export const DashboardPage = ({ envFromTop }: { envFromTop: string }) => {
{!isReadOnly && !isRollbackMode && (
- <>
-
-
- handlePopUpOpen("folderForm")}
- >
-
-
-
-
-
-
- {
- if (secretContainer.current) {
- secretContainer.current.scroll({
- top: 0,
- behavior: "smooth"
- });
- }
- prepend(DEFAULT_SECRET_VALUE, { shouldFocus: false });
- }}
- >
-
-
-
-
-
- }
- onClick={() => handlePopUpOpen("addSecretImport")}
- isDisabled={isReadOnly || isRollbackMode}
- variant="outline_bg"
- className="h-10"
- >
- Secret Link
-
-
-
- }
- onClick={() => handlePopUpOpen("folderForm")}
- isDisabled={isReadOnly || isRollbackMode}
- variant="outline_bg"
- className="h-10"
- >
- Add Folder
-
-
-
-
}
- onClick={() => {
+
+
-
- >
+ }
+ }}
+ className="font-semibold bg-mineshaft-600 border border-mineshaft-500 p-2 rounded-l-md text-sm text-mineshaft-300 cursor-pointer hover:bg-primary/[0.1] hover:border-primary/40 pr-4 duration-200"
+ >
+
Add Secret
+
+
+
+
+
+
+
+
+
+
+ }
+ onClick={() => handlePopUpOpen("folderForm")}
+ isDisabled={isReadOnly || isRollbackMode}
+ variant="outline_bg"
+ className="h-10"
+ isFullWidth
+ >
+ Add Folder
+
+
+
+ }
+ onClick={() => handlePopUpOpen("addSecretImport")}
+ isDisabled={isReadOnly || isRollbackMode}
+ variant="outline_bg"
+ className="h-10"
+ isFullWidth
+ >
+ Add Import
+
+
+
+
+
+
)}
{isRollbackMode && (