Skip to content

Commit 669af61

Browse files
committed
Keep help links on login page
1 parent b0203c2 commit 669af61

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

apps/webapp/app/components/LoginPageLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function LoginPageLayout({ children }: { children: React.ReactNode }) {
6262
</LinkButton>
6363
</div>
6464
<div className="flex h-full max-w-sm items-center justify-center">{children}</div>
65-
<Paragraph variant="small" className="hidden text-center lg:block">
65+
<Paragraph variant="small" className="text-center">
6666
Having login issues? <TextLink href="https://trigger.dev/contact">Email us</TextLink>{" "}
6767
or <TextLink href="https://trigger.dev/discord">ask us in Discord</TextLink>
6868
</Paragraph>

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ function ProjectSelector({
10031003
title="Logout"
10041004
icon={ArrowRightOnRectangleIcon}
10051005
leadingIconClassName="text-text-dimmed"
1006+
danger
10061007
/>
10071008
</div>
10081009
</PopoverContent>

apps/webapp/app/components/primitives/Popover.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const PopoverMenuItem = React.forwardRef<
6969
name?: string;
7070
value?: string;
7171
type?: React.ComponentProps<"button">["type"];
72+
danger?: boolean;
7273
}
7374
>(
7475
(
@@ -86,18 +87,23 @@ const PopoverMenuItem = React.forwardRef<
8687
name,
8788
value,
8889
type,
90+
danger = false,
8991
},
9092
ref
9193
) => {
9294
const contentProps = {
9395
variant: variant.variant,
9496
LeadingIcon: icon,
95-
leadingIconClassName,
97+
leadingIconClassName: danger
98+
? cn(leadingIconClassName, "transition-colors group-hover/button:text-error")
99+
: leadingIconClassName,
96100
fullWidth: true,
97101
textAlignLeft: true,
98102
TrailingIcon: isSelected ? CheckIcon : undefined,
99103
className: cn(
100-
"group-hover:bg-charcoal-700",
104+
danger
105+
? "transition-colors group-hover/button:bg-error/10 group-hover/button:text-error [&_span]:transition-colors [&_span]:group-hover/button:text-error"
106+
: "group-hover:bg-charcoal-700",
101107
isSelected ? "bg-charcoal-750 group-hover:bg-charcoal-600/50" : undefined,
102108
className
103109
),

0 commit comments

Comments
 (0)