Commit 74e212b 1 parent 4d9ddc2 commit 74e212b Copy full SHA for 74e212b
File tree 3 files changed +8
-44
lines changed
3 files changed +8
-44
lines changed Original file line number Diff line number Diff line change 1
- import TOLD from '@business/services/TOLD' ;
2
-
3
- import { useOverlay } from './overlay' ;
1
+ import { feedbackForm } from '@constants/urls' ;
4
2
5
3
interface UserFeedbackPrams {
6
- type : 'AI' | 'HUMAN' ;
4
+ type : keyof typeof feedbackForm ;
7
5
}
8
6
9
7
export function useUserFeedback ( { type } : UserFeedbackPrams ) {
10
- const { openOverlay } = useOverlay ( ) ;
11
-
12
- const displayForm = ( ) => {
13
- TOLD . displayForm ( type ) ;
14
-
15
- openOverlay ( ( { closeOverlay } ) => {
16
- const interval = setInterval ( ( ) => {
17
- if ( TOLD . isFormVisible ( ) ) {
18
- closeOverlay ( ) ;
19
- clearInterval ( interval ) ;
20
- }
21
- } , 1000 ) ;
22
-
23
- return (
24
- < div className = "w-h-screen flex-with-center" >
25
- < span className = "loading loading-spinner loading-lg" > </ span >
26
- </ div >
27
- ) ;
28
- } ) ;
29
- } ;
8
+ const displayForm = ( ) => window . open ( feedbackForm [ type ] , '_blank' ) ;
30
9
31
10
return { displayForm } ;
32
11
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,3 +5,8 @@ export const iceServers = [
5
5
'stun:stun3.l.google.com:19302' ,
6
6
'stun:stun4.l.google.com:19302' ,
7
7
] ;
8
+
9
+ export const feedbackForm = {
10
+ AI : 'https://forms.gle/WRag3fA8SsZhPNRT6' ,
11
+ HUMAN : 'https://forms.gle/adqDfMeL1ki28txV7' ,
12
+ } ;
You can’t perform that action at this time.
0 commit comments