From cef29f5dd7758fd2fbe717ae8964b4678f1f449f Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Mon, 17 Jul 2023 21:39:05 -0700 Subject: [PATCH] minor style update --- .../src/views/DashboardPage/DashboardPage.tsx | 115 ++++++++---------- 1 file changed, 49 insertions(+), 66 deletions(-) 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 }); - }} - > - - - -
-
- -
-
- -
-
- -
- + } + }} + 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 + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ )} {isRollbackMode && (