From d268f52a1c011f895e113e784509bc9e78f956ca Mon Sep 17 00:00:00 2001
From: x032205
Date: Thu, 15 May 2025 16:50:37 -0400
Subject: [PATCH] small ui tweak
---
.../OrgProductSelectSection.tsx | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx
index 6f303b05e..22825f9d4 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProductSelectSection/OrgProductSelectSection.tsx
@@ -1,5 +1,5 @@
import { createNotification } from "@app/components/notifications";
-import { Switch } from "@app/components/v2";
+import { Checkbox, Switch } from "@app/components/v2";
import { useOrganization } from "@app/context";
import { useUpdateOrg } from "@app/hooks/api";
import { useEffect, useState } from "react";
@@ -9,11 +9,11 @@ export const OrgProductSelectSection = () => {
[key: string]: { name: string; enabled: boolean };
}>({
secretsProductEnabled: {
- name: "Secrets",
+ name: "Secret Management",
enabled: true
},
pkiProductEnabled: {
- name: "PKI",
+ name: "Certificate Management",
enabled: true
},
kmsProductEnabled: {
@@ -53,11 +53,6 @@ export const OrgProductSelectSection = () => {
orgId: currentOrg.id,
[key]: value
});
-
- createNotification({
- text: `Successfully ${value ? "enabled" : "disabled"} ${toggledProducts[key].name}`,
- type: "success"
- });
};
return (
@@ -67,15 +62,17 @@ export const OrgProductSelectSection = () => {
Select which products are available for your organization.
-
+
{Object.entries(toggledProducts).map(([key, product]) => (
onProductToggle(value, key)}
isChecked={product.enabled}
+ className="ml-0"
+ containerClassName="flex-row-reverse gap-3 w-fit"
>
- {product.name}
+ {product.name}
))}