The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Let program sheet accordion content skip its height animation
Rafi23f6416a85b0
diff --git a/apps/web/ui/partners/program-sheet-accordion.tsx b/apps/web/ui/partners/program-sheet-accordion.tsxindex ae631200ac..7856380124 100644--- a/apps/web/ui/partners/program-sheet-accordion.tsx+++ b/apps/web/ui/partners/program-sheet-accordion.tsx@@ -57,17 +57,12 @@ ProgramSheetAccordionTrigger.displayName = "ProgramSheetAccordionTrigger";const ProgramSheetAccordionContent = React.forwardRef<React.ElementRef<typeof AccordionContent>,- React.ComponentPropsWithoutRef<typeof AccordionContent>->(({ className, children, ...props }, ref) => (- <AnimatedSizeContainer- height- transition={{- type: "spring",- stiffness: 300,- damping: 30,- mass: 0.8,- }}- >+ React.ComponentPropsWithoutRef<typeof AccordionContent> & {+ // Turn off for content that animates its own height, so the two animations don't fight+ animateHeight?: boolean;+ }+>(({ className, children, animateHeight = true, ...props }, ref) => {+ const content = (<AccordionContentref={ref}className={cn(@@ -79,8 +74,26 @@ const ProgramSheetAccordionContent = React.forwardRef<>{children}</AccordionContent>- </AnimatedSizeContainer>-));+ );++ if (!animateHeight) {+ return content;+ }++ return (+ <AnimatedSizeContainer+ height+ transition={{+ type: "spring",+ stiffness: 300,+ damping: 30,+ mass: 0.8,+ }}+ >+ {content}+ </AnimatedSizeContainer>+ );+});ProgramSheetAccordionContent.displayName = "ProgramSheetAccordionContent";export {