mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 01:02:00 +08:00
feat: update callback url for billing (#7667)
This commit is contained in:
parent
b0d19035a4
commit
2fa944d254
@ -45,6 +45,7 @@ export default function ChatSupportGateway(): JSX.Element {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
|
|
||||||
const handleAddCreditCard = (): void => {
|
const handleAddCreditCard = (): void => {
|
||||||
logEvent('Add Credit card modal: Clicked', {
|
logEvent('Add Credit card modal: Clicked', {
|
||||||
source: `intercom icon`,
|
source: `intercom icon`,
|
||||||
@ -52,7 +53,7 @@ export default function ChatSupportGateway(): JSX.Element {
|
|||||||
});
|
});
|
||||||
|
|
||||||
updateCreditCard({
|
updateCreditCard({
|
||||||
url: window.location.href,
|
url: window.location.origin,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ function LaunchChatSupport({
|
|||||||
});
|
});
|
||||||
|
|
||||||
updateCreditCard({
|
updateCreditCard({
|
||||||
url: window.location.href,
|
url: window.location.origin,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ export default function BillingContainer(): JSX.Element {
|
|||||||
});
|
});
|
||||||
|
|
||||||
updateCreditCard({
|
updateCreditCard({
|
||||||
url: window.location.href,
|
url: window.location.origin,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
logEvent('Billing : Manage Billing', {
|
logEvent('Billing : Manage Billing', {
|
||||||
@ -342,7 +342,7 @@ export default function BillingContainer(): JSX.Element {
|
|||||||
});
|
});
|
||||||
|
|
||||||
manageCreditCard({
|
manageCreditCard({
|
||||||
url: window.location.href,
|
url: window.location.origin,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
@ -143,7 +143,7 @@ export default function Support(): JSX.Element {
|
|||||||
});
|
});
|
||||||
|
|
||||||
updateCreditCard({
|
updateCreditCard({
|
||||||
url: window.location.href,
|
url: window.location.origin,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ export default function WorkspaceBlocked(): JSX.Element {
|
|||||||
logEvent('Workspace Blocked: User Clicked Update Credit Card', {});
|
logEvent('Workspace Blocked: User Clicked Update Credit Card', {});
|
||||||
|
|
||||||
updateCreditCard({
|
updateCreditCard({
|
||||||
url: window.location.href,
|
url: window.location.origin,
|
||||||
});
|
});
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [updateCreditCard]);
|
}, [updateCreditCard]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user