mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add intercom user id
This commit is contained in:
parent
20c001914a
commit
2828640ed7
4 changed files with 14 additions and 8 deletions
|
@ -54,13 +54,16 @@ export function Sidebar() {
|
|||
|
||||
useEffect(() => {
|
||||
if (userDetails) {
|
||||
update({
|
||||
name: userDetails.displayName,
|
||||
Username: userDetails.username,
|
||||
email: userDetails.email ?? undefined,
|
||||
Email: userDetails.email,
|
||||
"Subscription expiration date": userDetails?.subscription?.expiresAt,
|
||||
"Payment status": userDetails?.subscription?.status,
|
||||
window.electron.isStaging().then((isStaging) => {
|
||||
update({
|
||||
user_id: userDetails.id + (isStaging ? "-staging" : ""),
|
||||
name: userDetails.displayName,
|
||||
Username: userDetails.username,
|
||||
email: userDetails.email ?? undefined,
|
||||
Email: userDetails.email,
|
||||
"Subscription expiration date": userDetails?.subscription?.expiresAt,
|
||||
"Payment status": userDetails?.subscription?.status,
|
||||
});
|
||||
});
|
||||
}
|
||||
}, [userDetails, hasActiveSubscription]);
|
||||
|
|
1
src/renderer/src/declaration.d.ts
vendored
1
src/renderer/src/declaration.d.ts
vendored
|
@ -162,6 +162,7 @@ declare global {
|
|||
openExternal: (src: string) => Promise<void>;
|
||||
openCheckout: () => Promise<void>;
|
||||
getVersion: () => Promise<string>;
|
||||
isStaging: () => Promise<boolean>;
|
||||
ping: () => string;
|
||||
getDefaultDownloadsPath: () => Promise<string>;
|
||||
isPortableVersion: () => Promise<boolean>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue