diff --git a/apps/web/src/app/app/(auth)/_components/oauth-buttons.tsx b/apps/web/src/app/app/(auth)/_components/oauth-buttons.tsx deleted file mode 100644 index 8cf71337..00000000 --- a/apps/web/src/app/app/(auth)/_components/oauth-buttons.tsx +++ /dev/null @@ -1,74 +0,0 @@ -"use client"; - -import * as React from "react"; -import { useSearchParams } from "next/navigation"; -import { useSignIn } from "@clerk/nextjs"; -import type { OAuthStrategy } from "@clerk/nextjs/dist/types/server"; - -import { Button } from "@openstatus/ui"; - -import { Icons } from "@/components/icons"; -import { LoadingAnimation } from "@/components/loading-animation"; -import { toast } from "@/lib/toast"; - -export function OauthButtons() { - const [isLoading, setIsLoading] = React.useState(null); - const { signIn, isLoaded: signInLoaded } = useSignIn(); - const searchParams = useSearchParams(); - - const oauthSignIn = async (provider: OAuthStrategy) => { - if (!signInLoaded) { - return null; - } - try { - setIsLoading(provider); - - const redirectUrl = searchParams.get("redirect_url") || "/app"; - - await signIn.authenticateWithRedirect({ - strategy: provider, - redirectUrl, - redirectUrlComplete: redirectUrl, - }); - } catch (err) { - console.error(err); - setIsLoading(null); - toast.error((err as Error).message); - } - }; - - return ( -
-
- - -
-
- ); -} diff --git a/apps/web/src/app/app/(auth)/_components/terms-and-conditions.tsx b/apps/web/src/app/app/(auth)/_components/terms-and-conditions.tsx deleted file mode 100644 index 6796ac69..00000000 --- a/apps/web/src/app/app/(auth)/_components/terms-and-conditions.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import Link from "next/link"; - -export function TermsAndConditions() { - return ( -

- By clicking continue, you agree to our{" "} - - Terms of Service - {" "} - and{" "} - - Privacy Policy - - . -

- ); -} diff --git a/apps/web/src/app/app/(auth)/layout.tsx b/apps/web/src/app/app/(auth)/layout.tsx index e53fe633..38673dce 100644 --- a/apps/web/src/app/app/(auth)/layout.tsx +++ b/apps/web/src/app/app/(auth)/layout.tsx @@ -1,6 +1,4 @@ import * as React from "react"; -import Image from "next/image"; -import Link from "next/link"; import { redirect } from "next/navigation"; import { auth } from "@clerk/nextjs"; @@ -15,18 +13,9 @@ export default function AuthLayout({ redirect("/app"); } return ( -
-
diff --git a/apps/web/src/components/layout/header/user-nav.tsx b/apps/web/src/components/layout/header/user-nav.tsx deleted file mode 100644 index 72063429..00000000 --- a/apps/web/src/components/layout/header/user-nav.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import Link from "next/link"; -import { useParams } from "next/navigation"; -import { useAuth, useUser } from "@clerk/nextjs"; - -import { - Avatar, - AvatarFallback, - AvatarImage, - Button, - DropdownMenu, - DropdownMenuContent, - DropdownMenuGroup, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuTrigger, - Skeleton, -} from "@openstatus/ui"; - -export function UserNav() { - const { isLoaded, isSignedIn, user } = useUser(); - const { signOut } = useAuth(); - const { workspaceSlug } = useParams<{ workspaceSlug: string }>(); - - if (!isLoaded || !isSignedIn) { - return ; - } - - return ( - - - - - - -
-

- {user.fullName} -

-

- {user.emailAddresses?.[0].emailAddress} -

-
-
- - - - Billing - - - Profile - - - - signOut()}>Log out -
-
- ); -} diff --git a/apps/web/src/config/pages.ts b/apps/web/src/config/pages.ts index 7c4b4f80..a50c809c 100644 --- a/apps/web/src/config/pages.ts +++ b/apps/web/src/config/pages.ts @@ -46,13 +46,6 @@ export const settingsPagesConfig: Page[] = [ icon: "sun", segment: "appearance", }, - { - title: "User", - description: "Profile settings for the user.", - href: "/settings/user", - icon: "user", - segment: "user", - }, ]; export const monitorPagesConfig: Page[] = [