Skip to content

Commit ae03e24

Browse files
committed
Update Footer.tsx
1 parent a635e7b commit ae03e24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.storybook/components/Footer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js';
22
import PopoverPlacement from '@ui5/webcomponents/dist/types/PopoverPlacement.js';
33
import WrappingType from '@ui5/webcomponents/dist/types/WrappingType.js';
4+
import type { ButtonPropTypes, PopoverDomRef } from '@ui5/webcomponents-react';
45
import {
56
Button,
67
FlexBox,
@@ -18,10 +19,10 @@ import BestRunLogo from '../../assets/SAP_Best_R_grad_blk_scrn.png';
1819
import classes from './Footer.module.css';
1920

2021
export const Footer = ({ style }) => {
21-
const popoverRef = useRef(null);
22+
const popoverRef = useRef<PopoverDomRef>(null);
2223
const footerRef = useRef(null);
2324
const [privacyPopoverOpen, setPPOpen] = useState(false);
24-
const showPrivacyPopover = (e) => {
25+
const showPrivacyPopover: ButtonPropTypes['onClick'] = (e) => {
2526
popoverRef.current.opener = e.target;
2627
setPPOpen((prev) => !prev);
2728
};

0 commit comments

Comments
 (0)