Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions desktop/src/features/onboarding/ui/PendingInviteGate.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useCommunityOnboarding } from "@/features/onboarding/communityOnboarding";
import { useSystemColorScheme } from "@/shared/theme/useSystemColorScheme";
import { Button } from "@/shared/ui/button";
import { FlappingBee } from "@/shared/ui/buzz-logo/FlappingBee";
import { StartupWindowDragRegion } from "@/shared/ui/StartupWindowDragRegion";

/**
* Acknowledge a community deep link received before machine onboarding is
Expand All @@ -9,23 +11,26 @@ import { FlappingBee } from "@/shared/ui/buzz-logo/FlappingBee";
*/
export function PendingInviteGate() {
const { transaction, update, clear } = useCommunityOnboarding();
const systemColorScheme = useSystemColorScheme();

if (!transaction) return null;

return (
<div
className="buzz-onboarding-neutral-theme fixed inset-0 z-50 flex items-center justify-center bg-background px-4 py-8 text-foreground"
className="buzz-onboarding-neutral-theme buzz-startup-shell fixed inset-0 z-50 flex items-center justify-center bg-background px-4 py-8 text-foreground"
data-system-color-scheme={systemColorScheme}
data-testid="pending-invite-gate"
>
<div className="flex w-full max-w-[440px] flex-col items-center text-center">
<StartupWindowDragRegion />
<div className="relative flex w-full max-w-[500px] flex-col items-center text-center">
<FlappingBee className="h-auto w-24" />
<h1 className="mt-6 text-3xl font-semibold tracking-tight">
Opening community link
</h1>
<p className="mt-3 text-sm leading-6 text-muted-foreground">
You’ll connect to {transaction.communityName} once setup is finished.
</p>
<div className="mt-8 flex w-full flex-col gap-3">
<div className="mt-8 flex w-full max-w-[300px] flex-col gap-3">
<Button
className="h-10 w-full"
data-testid="pending-invite-continue"
Expand Down