Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6263 Rev 6266
Línea 1... Línea 1...
1
import axios from 'axios'
1
import axios from 'axios'
2
import { async } from 'postcss-js'
-
 
3
import React, { useState } from 'react'
2
import React, { useState } from 'react'
4
import { Modal, Form, Button } from 'react-bootstrap'
3
import { Modal, Form, Button } from 'react-bootstrap'
5
import { useForm } from 'react-hook-form'
4
import { useForm } from 'react-hook-form'
Línea 6... Línea 5...
6
 
5
 
Línea 48... Línea 47...
48
                            id="formFileSm"
47
                            id="formFileSm"
49
                            type="file"
48
                            type="file"
50
                            name="cover"
49
                            name="cover"
51
                            accept='.jpg, .jpeg, .png, .gif'
50
                            accept='.jpg, .jpeg, .png, .gif'
52
                            ref={register}
51
                            ref={register}
53
                            style={{padding: '1px'}}
52
                            style={{ padding: '1px' }}
54
                        />
53
                        />
55
                    </div>
54
                    </div>
-
 
55
                    {error && <p>{error}</p>}
56
                </Modal.Body>
56
                </Modal.Body>
57
                <Modal.Footer>
57
                <Modal.Footer>
58
                    <Button
58
                    <Button
59
                        variant="primary"
59
                        variant="primary"
60
                        type="submit"
60
                        type="submit"