UNCLASSIFIED

Commit dc20a5aa authored by luke.glasscock's avatar luke.glasscock
Browse files

Remove unused comments/code

parent 7a8eb4f3
Pipeline #245333 passed with stage
in 1 minute and 2 seconds
...@@ -18,12 +18,6 @@ import { PrimaryButton, SecondaryButton } from './core'; ...@@ -18,12 +18,6 @@ import { PrimaryButton, SecondaryButton } from './core';
const korolevFont = 'korolev, Helvetica Neue, Helvetica, Arial, sans-serif'; const korolevFont = 'korolev, Helvetica Neue, Helvetica, Arial, sans-serif';
const FeedbackForm = ({ onClose }) => { const FeedbackForm = ({ onClose }) => {
/*
TODO: Jovany, will need to add initial state for form inputs here
...will also need to add onChange methods in the render section, similar to ContactForm.js
*/
const [name, setName] = useState(''); const [name, setName] = useState('');
const [email, setEmail] = useState(''); const [email, setEmail] = useState('');
const [thoughts, setThoughts] = useState(''); const [thoughts, setThoughts] = useState('');
...@@ -32,26 +26,15 @@ const FeedbackForm = ({ onClose }) => { ...@@ -32,26 +26,15 @@ const FeedbackForm = ({ onClose }) => {
const [success, setSuccess] = useState(); const [success, setSuccess] = useState();
const handleSubmit = () => { const handleSubmit = () => {
/*
TODO: Jovany, will need to modify the body of the email to send input values
*/
window.open(
`mailto:AFLCMC.HN.DT3@us.af.mil?subject=Feedback Form&body=Name:%0d%0a${name}%0d%0a%0d%0aEmail:%0d%0a${email}%0d%0a%0d%0aThoughts:%0d%0a${thoughts}%0d%0a%0d%0aVolunteer:%0d%0a${volunteer === true ? 'Yes' : 'No'}%0d%0a%0d%0a`,
'_blank',
'width=800,height=500'
);
/*
window.open( window.open(
`mailto:AFLCMC.HN.DT3@us.af.mil?subject=Contact Form&body=Name:%0d%0a${name}%0d%0a%0d%0aEmail address:%0d%0a${email}%0d%0a%0d%0aServices or solutions you are interested in:%0d%0a${services}%0d%0a%0d%0aComments or details:%0d%0a${comments}%0d%0a%0d%0a`, `mailto:AFLCMC.HN.DT3@us.af.mil?subject=Feedback Form&body=Name:%0d%0a${name}%0d%0a%0d%0aEmail:%0d%0a${email}%0d%0a%0d%0aThoughts:%0d%0a${thoughts}%0d%0a%0d%0aVolunteer:%0d%0a${
volunteer ? 'Yes' : 'No'
}%0d%0a%0d%0a`,
'_blank', '_blank',
'width=800,height=500' 'width=800,height=500'
); );
*/ /* Removing google docs submit */
// setSubmitting(true); // setSubmitting(true);
// fetch( // fetch(
...@@ -114,7 +97,6 @@ const FeedbackForm = ({ onClose }) => { ...@@ -114,7 +97,6 @@ const FeedbackForm = ({ onClose }) => {
style={{ height: '100px' }} style={{ height: '100px' }}
value={thoughts} value={thoughts}
onChange={(e) => setThoughts(e.target.value)} onChange={(e) => setThoughts(e.target.value)}
/> />
</FormField> </FormField>
<ThemeContext.Extend <ThemeContext.Extend
...@@ -153,8 +135,12 @@ const FeedbackForm = ({ onClose }) => { ...@@ -153,8 +135,12 @@ const FeedbackForm = ({ onClose }) => {
</Text> </Text>
} }
> >
<TextInput id="text-input-name" name="entry.1573591932" value={name} <TextInput
onChange={(e) => setName(e.target.value)} /> id="text-input-name"
name="entry.1573591932"
value={name}
onChange={(e) => setName(e.target.value)}
/>
</FormField> </FormField>
<FormField <FormField
name="entry.18763422251876342225" name="entry.18763422251876342225"
...@@ -168,9 +154,12 @@ const FeedbackForm = ({ onClose }) => { ...@@ -168,9 +154,12 @@ const FeedbackForm = ({ onClose }) => {
</Text> </Text>
} }
> >
<TextInput id="text-input-email" name="entry.1876342225" value={email} <TextInput
onChange={(e) => setEmail(e.target.value)} /> id="text-input-email"
name="entry.1876342225"
value={email}
onChange={(e) => setEmail(e.target.value)}
/>
</FormField> </FormField>
<Box pad={{ top: 'medium' }} align="center" justify="center"> <Box pad={{ top: 'medium' }} align="center" justify="center">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment