Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 9779 | Rev 9791 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 9779 Rev 9782
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
2
import { useForm } from 'react-hook-form'
2
import { useForm } from 'react-hook-form'
3
import { SearchInput } from '../components/TableComponents'
3
import { SearchInput } from '../components/TableComponents'
-
 
4
import Datetime from 'react-datetime'
-
 
5
import "react-datetime/css/react-datetime.css"
Línea 4... Línea 6...
4
 
6
 
Línea 5... Línea 7...
5
const FormView = ({ actionLink, googleApiKey }) => {
7
const FormView = ({ actionLink, googleApiKey }) => {
6
 
8
 
7
  const { handleSubmit, register } = useForm()
9
  const { handleSubmit, register } = useForm()
8
  const [location, setLocation] = useState({})
10
  const [location, setLocation] = useState({})
9
  const [year, setYear] = useState(new Date().toString())
11
  const [year, setYear] = useState(new Date())
10
  const [locationLabel, setLocationLabel] = useState('')
12
  const [locationLabel, setLocationLabel] = useState('')
11
  const [jobsDescriptions, setJobsDescriptions] = useState([
13
  const [jobsDescriptions, setJobsDescriptions] = useState([
12
    {
14
    {
Línea 91... Línea 93...
91
                  dateFormat="DD-MM-YYYY"
93
                  dateFormat="DD-MM-YYYY"
92
                  timeFormat={false}
94
                  timeFormat={false}
93
                  onChange={(e) =>
95
                  onChange={(e) =>
94
                    setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
96
                    setYear(new Intl.DateTimeFormat({ year: 'numeric', month: 'numeric', day: 'numeric' }).format(e.toDate()))
95
                  }
97
                  }
96
                  initialValue={Date.parse(year)}
-
 
97
                  inputProps={{ className: 'form-control' }}
98
                  inputProps={{ className: 'form-control' }}
98
                  closeOnSelect
99
                  closeOnSelect
99
                />
100
                />
100
              </select>
101
              </select>
101
            </div>
102
            </div>