Skip to content
Merged
Show file tree
Hide file tree
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
15 changes: 8 additions & 7 deletions apps/dashboard/app/auth/sign-in/org-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,32 @@ export const OrgSelector: React.FC<OrgSelectorProps> = ({ organizations }) => {
setIsOpen(false);
};


return (
<Dialog
open={clientReady && isOpen}
onOpenChange={(open) => {
setIsOpen(open);
}}
>
<DialogContent className="border-border w-11/12">
<DialogHeader>
<DialogTitle>Workspace Selection</DialogTitle>
<DialogDescription>Select a workspace to continue authentication:</DialogDescription>
<DialogContent className="dark border-border w-11/12">
<DialogHeader className="dark">
<DialogTitle className="text-white">Workspace Selection</DialogTitle>
<DialogDescription className="dark">Select a workspace to continue authentication:</DialogDescription>
</DialogHeader>
<Select onValueChange={(orgId) => setSelected(orgId)} value={selected}>
<SelectTrigger>
<SelectTrigger className="dark">
<SelectValue placeholder="Select a Workspace" />
</SelectTrigger>
<SelectContent>
<SelectContent className="dark">
{organizations.map((org) => (
<SelectItem key={org.id} value={org.id}>
{org.name}
</SelectItem>
))}
</SelectContent>
</Select>
<Button variant="primary" onClick={handleContinue} disabled={!selected}>
<Button className="dark" variant="primary" onClick={handleContinue} disabled={!selected}>
Continue with Sign-In
</Button>
</DialogContent>
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const env = () =>
WORKOS_WEBHOOK_SECRET: z.string().optional(),
NEXT_PUBLIC_WORKOS_REDIRECT_URI: z
.string()
.default("http://localhost:3000/auth/sso-callback"),
.optional(),
WORKOS_COOKIE_PASSWORD: z.string().optional(),
})
.parse(process.env);
Expand Down
Loading