File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js' ;
22import PopoverPlacement from '@ui5/webcomponents/dist/types/PopoverPlacement.js' ;
33import WrappingType from '@ui5/webcomponents/dist/types/WrappingType.js' ;
4+ import type { ButtonPropTypes , PopoverDomRef } from '@ui5/webcomponents-react' ;
45import {
56 Button ,
67 FlexBox ,
@@ -18,10 +19,10 @@ import BestRunLogo from '../../assets/SAP_Best_R_grad_blk_scrn.png';
1819import classes from './Footer.module.css' ;
1920
2021export 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 } ;
You can’t perform that action at this time.
0 commit comments