PluginProbe
Extendify / 0.6.0
Extendify v0.6.0
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / components / notices / FeedbackNotice.js

FeedbackNotice.js in Extendify 0.6.0, at src/components/notices/FeedbackNotice.js

37 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Button } from '@wordpress/components'
2 import { __ } from '@wordpress/i18n'
3 import { General } from '@extendify/api/General'
4 import { useUserStore } from '@extendify/state/User'
5
6 export default function FeedbackNotice() {
7 return (
8 <>
9 <span className="text-black">
10 {__(
11 'Tell us how to make the Extendify Library work better for you',
12 'extendify',
13 )}
14 </span>
15 <span className="px-2 opacity-50" aria-hidden="true">
16 &#124;
17 </span>
18 <div className="flex items-center justify-center space-x-2">
19 <Button
20 variant="link"
21 className="h-auto p-0 text-black underline hover:no-underline"
22 href={`https://extendify.com/feedback/?utm_source=${
23 window.extendifyData.sdk_partner
24 }&utm_medium=library&utm_campaign=feedback-notice&utm_content=give-feedback&utm_group=${useUserStore
25 .getState()
26 .activeTestGroupsUtmValue()}`}
27 onClick={async () =>
28 await General.ping('feedback-notice-click')
29 }
30 target="_blank">
31 {__('Give feedback', 'extendify')}
32 </Button>
33 </div>
34 </>
35 )
36 }
37