Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4212 Rev 4351
Línea 45... Línea 45...
45
        onSend(message)
45
        onSend(message)
46
        reset()
46
        reset()
47
    }
47
    }
Línea 48... Línea 48...
48
 
48
 
49
    return (
49
    return (
50
        <div className="message-send-area">
50
        <div className="chat__input-container">
51
            <form onSubmit={handleSubmit(handleSend)}>
-
 
52
                <div className="mf-field">
51
            <form onSubmit={handleSubmit(handleSend)}>
53
                    <input
52
                <input
54
                        type="file"
53
                    type="file"
55
                        name="file"
54
                    name="file"
56
                        hidden
55
                    hidden
57
                        ref={(e) => fileInputEl.current = e}
56
                    ref={fileInputEl}
58
                        accept={permittedFiles}
57
                    accept={permittedFiles}
59
                        onChange={handleUploadFile}
58
                    onChange={handleUploadFile}
60
                    />
59
                />
61
                    <button
60
                <button
62
                        type="button"
61
                    type="button"
63
                        className='inputIcon ti-clip icon uploadFile text-gray'
-
 
64
                        id="uploadFile"
62
                    className='inputIcon ti-clip icon uploadFile text-gray'
65
                        onClick={() => fileInputEl.current.click()}
63
                    onClick={() => fileInputEl.current.click()}
66
                    />
64
                />
67
                    <input
65
                <input
68
                        type="text"
66
                    type="text"
69
                        name="message"
67
                    name="message"
70
                        className="border-radius"
68
                    className="border-radius"
71
                        ref={register({ required: true })}
69
                    ref={register({ required: true })}
72
                        placeholder={backendVars.labelWriteMessage}
70
                    placeholder={backendVars.labelWriteMessage}
73
                    />
71
                />
74
                    <button type="submit" className="btn btn-secondary p-1 inmail-submit-btn ">
72
                <button type="submit" className="send_btn">
75
                        <i className="fas fa-chevron-right" />
73
                    <i className="fas fa-chevron-right" />
76
                    </button>
-
 
77
                </div>
74
                </button>
78
            </form>
75
            </form>
79
            {selectedFile &&
76
            {selectedFile &&
80
                <FileModal
77
                <FileModal
81
                    file={selectedFile}
78
                    file={selectedFile}