From 4b37b2afbac737b37b2d97bd1dca633d452c72df Mon Sep 17 00:00:00 2001
From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com>
Date: Tue, 6 Feb 2024 03:17:33 +0400
Subject: [PATCH] Wired most of the frontend to support ghost users
---
frontend/src/layouts/AppLayout/AppLayout.tsx | 72 ++++++++++---------
.../src/pages/org/[id]/overview/index.tsx | 18 -----
.../MemberListTab/MemberListTab.tsx | 2 +
3 files changed, 39 insertions(+), 53 deletions(-)
diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx
index 84dc0f480..357e7c770 100644
--- a/frontend/src/layouts/AppLayout/AppLayout.tsx
+++ b/frontend/src/layouts/AppLayout/AppLayout.tsx
@@ -238,7 +238,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
projectId: newProjectId
});
}
-
+
// eslint-disable-next-line no-promise-executor-return -- We do this because the function returns too fast, which sometimes causes an error when the user is redirected.
await new Promise((resolve) => setTimeout(resolve, 2_000));
@@ -250,7 +250,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
createNotification({ text: "Failed to create workspace", type: "error" });
}
};
-
+
return (
<>
@@ -288,41 +288,43 @@ export const AppLayout = ({ children }: LayoutProps) => {
{user?.email}
- {orgs?.map((org) => {
+ {orgs?.map((org) => {
return (
-
-
+
+ );
})}
{/*
{
- {(window.location.origin.includes("https://app.infisical.com")) && (
+ {window.location.origin.includes("https://app.infisical.com") && (