Skip to content

Commit 47b546a

Browse files
committed
Update Footer.tsx
1 parent 4b77cec commit 47b546a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.storybook/components/Footer.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ import {
1313
Popover,
1414
Text,
1515
} from '@ui5/webcomponents-react';
16+
import type { CommonProps } from '@ui5/webcomponents-react-base';
17+
import { clsx } from 'clsx';
1618
import { useRef, useState } from 'react';
1719
import { createPortal } from 'react-dom';
1820
import BestRunLogo from '../../assets/SAP_Best_R_grad_blk_scrn.png';
1921
import classes from './Footer.module.css';
2022

21-
export const Footer = ({ style }) => {
23+
export const Footer = (props: CommonProps) => {
24+
const { className } = props;
2225
const popoverRef = useRef<PopoverDomRef>(null);
2326
const footerRef = useRef(null);
2427
const [privacyPopoverOpen, setPPOpen] = useState(false);
@@ -28,7 +31,7 @@ export const Footer = ({ style }) => {
2831
};
2932

3033
return createPortal(
31-
<footer className={classes.footer} style={style}>
34+
<footer {...props} className={clsx(classes.footer, className)}>
3235
<div ref={footerRef} className={classes.content}>
3336
<FlexBox
3437
justifyContent={FlexBoxJustifyContent.SpaceBetween}

0 commit comments

Comments
 (0)