File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
apps/webapp/app/components Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments