diff --git a/app/components/Section.tsx b/app/components/Section.tsx index f515e5d8..052c164f 100644 --- a/app/components/Section.tsx +++ b/app/components/Section.tsx @@ -94,7 +94,7 @@ export let Section = forwardRef((props, ref) => { "--section-background-color": backgroundColor, "--section-border-radius": `${borderRadius}px`, } as React.CSSProperties; - let insideBackground = backgroundFor === "content"; + let isBgForContent = backgroundFor === "content"; return ( ((props, ref) => { {...rest} style={style} className={cn(variants({ padding: width, className }), { - "has-background": !insideBackground, + "has-background": !isBgForContent, })} > - {!insideBackground && } + {!isBgForContent && }
((props, ref) => { className: containerClassName, }), { - "has-background": insideBackground, + "has-background": isBgForContent, }, )} > - {insideBackground && } + {isBgForContent && } {children}