diff --git a/txclient/src/app/admin/(organization-profile)/org/profile/[id]/clients/create/page.tsx b/txclient/src/app/admin/(organization-profile)/org/profile/[id]/clients/create/page.tsx
index bfaac9c..b50ac1b 100644
--- a/txclient/src/app/admin/(organization-profile)/org/profile/[id]/clients/create/page.tsx
+++ b/txclient/src/app/admin/(organization-profile)/org/profile/[id]/clients/create/page.tsx
@@ -12,6 +12,7 @@ import { useNavigation } from "@hooks/goto";
import TextPhone from "@core/app/components/TextPhone/TextPhone";
import MaterialAlert from "@mui/material/Alert";
import { createClient } from "../Clients.Service";
+import { useBottomToolbarStore } from "@core/Store/BottomToolbar.Store";
type UrlData = {
id: string;
@@ -23,6 +24,7 @@ export default function ClientCreate() {
const alert = useAlert();
const SessionInfo = useSessionStore();
const location = useLocationStore();
+ const bottomToolbar = useBottomToolbarStore();
const eventHandler = useEventHandlerStore();
const [firstName, setFirstName] = useState("");
const [lastName, setLastName] = useState("");
@@ -39,6 +41,8 @@ export default function ClientCreate() {
useEffect(() => {
location.clear();
+ bottomToolbar.set(<>>);
+
location.add({
url: "/admin/org/profile/" + id,
title: "Origanizacion",
@@ -56,6 +60,10 @@ export default function ClientCreate() {
title: "Crear",
icon: ,
});
+
+ return () => {
+ bottomToolbar.clear();
+ };
}, []);
useEffect(() => {
@@ -72,7 +80,7 @@ export default function ClientCreate() {
})
.then((newClient) => {
alert.showSuccess(
- `El cliente ${newClient.firstName} ${newClient.lastName} ha sido creado`
+ `El cliente ${newClient.firstName} ${newClient.lastName} ha sido creado`,
);
setTimeout(() => {
goTo("/admin/org/profile/" + id + "/clients");
diff --git a/txclient/src/app/components/FinancialWidget/FinancialWidget.module.css b/txclient/src/app/components/FinancialWidget/FinancialWidget.module.css
index 501a628..4cecc0e 100644
--- a/txclient/src/app/components/FinancialWidget/FinancialWidget.module.css
+++ b/txclient/src/app/components/FinancialWidget/FinancialWidget.module.css
@@ -27,15 +27,28 @@
padding: 0;
border: 0;
background: transparent;
- cursor: pointer;
text-align: left;
}
+.headerToggle {
+ display: block;
+ width: 100%;
+ padding: 0;
+ border: 0;
+ background: transparent;
+ font: inherit;
+ color: inherit;
+ text-align: left;
+ cursor: pointer;
+}
+
.title {
font-size: 20px;
font-weight: 700;
color: var(--green-darkestX1);
margin: 0;
+ flex: 1;
+ min-width: 0;
}
.toggleIcon {
@@ -45,13 +58,16 @@
flex: 0 0 auto;
width: 32px;
height: 32px;
+ padding: 0;
border-radius: 999px;
background: var(--white);
color: var(--green-darkestX1);
border: 1px solid var(--green-darkestX1);
+ font-family: inherit;
font-size: 22px;
font-weight: 800;
line-height: 1;
+ cursor: pointer;
}
.filters {
diff --git a/txclient/src/app/components/FinancialWidget/FinancialWidget.tsx b/txclient/src/app/components/FinancialWidget/FinancialWidget.tsx
index 43a9a29..dc1e670 100644
--- a/txclient/src/app/components/FinancialWidget/FinancialWidget.tsx
+++ b/txclient/src/app/components/FinancialWidget/FinancialWidget.tsx
@@ -99,44 +99,61 @@ export default function FinancialWidget({
if (!selectedOrgId) return null;
+ const header = (
+
+
+
+
+
+
+
+
+
+ );
+
if (error) {
return (
-
+ {header}
{isOpen && (
@@ -160,41 +177,7 @@ export default function FinancialWidget({
return (
-
setIsOpen((value) => !value)}
- >
-
- Rendimiento Financiero {organizationName ? `- ${organizationName}` : ""}
-
-
- goTo(`/landing/org/${selectedOrgId}`)}
- style={{
- display: "inline-flex",
- alignItems: "center",
- gap: "6px",
- padding: "6px 12px",
- borderRadius: "999px",
- color: "var(--green-darkestX1)",
- border: "1px solid var(--green-darkestX1)",
- background: "var(--white)",
- textDecoration: "none",
- fontSize: "14px",
- fontWeight: 600,
- cursor: "pointer",
- transition: "all 0.2s ease",
- }}
- title="Ver perfil público de la organización"
- >
-
- Ver perfil
-
- {isOpen ? "−" : "+"}
-
-
+ {header}
{isOpen && (
<>