From 2c9fdb7fad932d155a51d19e1f792e1e32aee241 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Fri, 5 Jul 2024 00:30:22 +0800 Subject: [PATCH 1/3] feat: initial make a wish UI --- frontend/src/layouts/AppLayout/AppLayout.tsx | 83 ++++++++------------ 1 file changed, 34 insertions(+), 49 deletions(-) diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index acf899a7ee..8bd51417d1 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -8,10 +8,9 @@ import { useEffect, useMemo } from "react"; import { Controller, useForm } from "react-hook-form"; import { useTranslation } from "react-i18next"; -import Image from "next/image"; import Link from "next/link"; import { useRouter } from "next/router"; -import { faGithub, faSlack } from "@fortawesome/free-brands-svg-icons"; +import { faGithub, faRocketchat, faSlack } from "@fortawesome/free-brands-svg-icons"; import { faStar } from "@fortawesome/free-regular-svg-icons"; import { faAngleDown, @@ -48,8 +47,12 @@ import { MenuItem, Modal, ModalContent, + Popover, + PopoverContent, + PopoverTrigger, Select, SelectItem, + TextArea, UpgradePlanModal } from "@app/components/v2"; import { UpgradeOverlay } from "@app/components/v2/UpgradeOverlay"; @@ -69,9 +72,7 @@ import { useGetAccessRequestsCount, useGetOrgTrialUrl, useGetSecretApprovalRequestCount, - useGetUserAction, useLogoutUser, - useRegisterUserAction, useSelectOrganization } from "@app/hooks/api"; import { Workspace } from "@app/hooks/api/types"; @@ -145,7 +146,6 @@ export const AppLayout = ({ children }: LayoutProps) => { const { subscription } = useSubscription(); const workspaceId = currentWorkspace?.id || ""; const projectSlug = currentWorkspace?.slug || ""; - const { data: updateClosed } = useGetUserAction("december_update_closed"); const { data: secretApprovalReqCount } = useGetSecretApprovalRequestCount({ workspaceId }); const { data: accessApprovalRequestCount } = useGetAccessRequestsCount({ projectSlug }); @@ -179,13 +179,8 @@ export const AppLayout = ({ children }: LayoutProps) => { const { t } = useTranslation(); - const registerUserAction = useRegisterUserAction(); const { mutateAsync: selectOrganization } = useSelectOrganization(); - const closeUpdate = async () => { - await registerUserAction.mutateAsync("december_update_closed"); - }; - const logout = useLogoutUser(); const logOutUser = async () => { try { @@ -769,45 +764,35 @@ export const AppLayout = ({ children }: LayoutProps) => {
*/} -
-
- Infisical December update -
-
- Infisical Agent, new SDKs, Machine Identities, and more! -
-
- kubernetes image -
-
- - - Learn More{" "} - - -
-
+ + +
+ + Make a wish +
+
+ + +