PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
image-optimization / modules / reviews / assets / src / components / feedback-form.js

feedback-form.js in Image Optimizer – Compress Images and Convert to WebP or AVIF trunk, at modules/reviews/assets/src/components/feedback-form.js

40 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { styled } from '@elementor/ui/styles';
2 import Button from '@elementor/ui/Button';
3 import FormControl from '@elementor/ui/FormControl';
4 import TextField from '@elementor/ui/TextField';
5 import { __ } from '@wordpress/i18n';
6 import { useSettings } from '../hooks/use-settings';
7
8 const FeedbackForm = ( { close, handleSubmitForm } ) => {
9 const { feedback, setFeedback } = useSettings();
10
11 return (
12 <FormControl fullWidth>
13 <StyledTextField
14 value={ feedback }
15 onChange={ ( e ) => setFeedback( e.target.value ) }
16 placeholder={ __( 'Share your thoughts on how we can improve Image Optimization…', 'image-optimization' ) }
17 minRows={ 5 }
18 multiline />
19 <Button
20 color="primary"
21 variant="contained"
22 onClick={ () => handleSubmitForm( close ) }
23 >
24 { __( 'Submit', 'image-optimization' ) }
25 </Button>
26 </FormControl>
27 );
28 };
29
30 export default FeedbackForm;
31
32 const StyledTextField = styled( TextField )`
33 textarea:focus-visible,
34 textarea:active {
35 outline: none;
36 box-shadow: none;
37 }
38 `;
39
40