Skip to content

Commit 9c7c817

Browse files
committed
feat(rebound): make primary color optional
1 parent ca95e82 commit 9c7c817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ReboundSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Props = {
77
bottomRebound?: number;
88
height: number;
99
bottomHeight?: number;
10-
primaryColor: string;
10+
primaryColor?: string;
1111
position?: 'top' | 'bottom' | 'both';
1212
};
1313

@@ -23,7 +23,7 @@ export function ReboundSection({
2323
...props
2424
}: Props & HTMLProps<HTMLElement>) {
2525
const baseStyles = css`
26-
background-color: ${primaryColor};
26+
background-color: ${primaryColor ?? '#000000'};
2727
`;
2828
let styles: SerializedStyles;
2929

0 commit comments

Comments
 (0)