1- import { PopoverDomRef , Ui5CustomEvent , TextAreaDomRef , Button , ButtonDomRef , Popover , Form , FormGroup , FormItem , Label , Link , RatingIndicator , TextArea } from "@ui5/webcomponents-react" ;
2- import { Dispatch , RefObject , SetStateAction , useRef , useState } from "react" ;
3- import { useAuthOnboarding } from "../../spaces/onboarding/auth/AuthContextOnboarding" ;
4- import { useTranslation } from "react-i18next" ;
5- import { ButtonClickEventDetail } from "@ui5/webcomponents/dist/Button.js" ;
6- import PopoverPlacement from "@ui5/webcomponents/dist/types/PopoverPlacement.js" ;
7- import ButtonDesign from "@ui5/webcomponents/dist/types/ButtonDesign.js" ;
1+ import {
2+ PopoverDomRef ,
3+ Ui5CustomEvent ,
4+ TextAreaDomRef ,
5+ Button ,
6+ ButtonDomRef ,
7+ Popover ,
8+ Form ,
9+ FormGroup ,
10+ FormItem ,
11+ Label ,
12+ Link ,
13+ RatingIndicator ,
14+ TextArea ,
15+ } from '@ui5/webcomponents-react' ;
16+ import { Dispatch , RefObject , SetStateAction , useRef , useState } from 'react' ;
17+ import { useAuthOnboarding } from '../../spaces/onboarding/auth/AuthContextOnboarding' ;
18+ import { useTranslation } from 'react-i18next' ;
19+ import { ButtonClickEventDetail } from '@ui5/webcomponents/dist/Button.js' ;
20+ import PopoverPlacement from '@ui5/webcomponents/dist/types/PopoverPlacement.js' ;
21+ import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js' ;
822
923type UI5RatingIndicatorElement = HTMLElement & { value : number } ;
1024
11-
1225export function FeedbackButton ( ) {
1326 const feedbackPopoverRef = useRef < PopoverDomRef > ( null ) ;
1427 const [ feedbackMessage , setFeedbackMessage ] = useState ( '' ) ;
@@ -51,14 +64,7 @@ export function FeedbackButton() {
5164
5265 return (
5366 < >
54- < Button
55- icon = "feedback"
56- tooltip = "Feedback"
57- onClick = { onFeedbackClick }
58- design = { ButtonDesign . Transparent }
59- >
60-
61- </ Button >
67+ < Button icon = "feedback" tooltip = "Feedback" design = { ButtonDesign . Transparent } onClick = { onFeedbackClick } />
6268 < FeedbackPopover
6369 open = { feedbackPopoverOpen }
6470 setOpen = { setFeedbackPopoverOpen }
@@ -71,7 +77,7 @@ export function FeedbackButton() {
7177 onFeedbackMessageChange = { onFeedbackMessageChange }
7278 />
7379 </ >
74- )
80+ ) ;
7581}
7682
7783const FeedbackPopover = ( {
0 commit comments