-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: ⚡️ added sperate organization selection page
Created seperate page for selecting and creating organiation, this will allow us to prevent any page break where no organiization is cretated ✅ Closes: #169
- Loading branch information
1 parent
891269f
commit 40941cb
Showing
20 changed files
with
198 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ yarn-error.log* | |
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
.env | ||
# Sentry Config File | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { OrganizationRequired } from "@/components/wrappers/OrganizationRequired"; | ||
|
||
type Props = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export default function Layout({ children }: Props) { | ||
return <OrganizationRequired>{children}</OrganizationRequired>; | ||
return <>{children}</>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { ClerkLoading, OrganizationList, UserButton } from "@clerk/nextjs"; | ||
import { Skeleton } from "@convoform/ui/components/ui/skeleton"; | ||
|
||
import BrandName from "@/components/common/brandName"; | ||
import Spinner from "@/components/common/spinner"; | ||
|
||
export default function Page() { | ||
return ( | ||
<div className="flex h-screen flex-col items-center justify-between"> | ||
<div className="w-full border-b bg-white/70 shadow-sm backdrop-blur "> | ||
<header className="container flex items-center justify-between p-3"> | ||
<BrandName className="text-xl lg:text-2xl" /> | ||
<div> | ||
<ClerkLoading> | ||
<Skeleton className="h-10 w-10 animate-pulse rounded-full" /> | ||
</ClerkLoading> | ||
<UserButton /> | ||
</div> | ||
</header> | ||
</div> | ||
<div> | ||
<OrganizationList | ||
afterSelectOrganizationUrl="/dashboard" | ||
hidePersonal | ||
/> | ||
<ClerkLoading> | ||
<div className="flex w-full justify-center"> | ||
<Spinner label="Please wait..." /> | ||
</div> | ||
</ClerkLoading> | ||
</div> | ||
<div></div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.