Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15805 Rev 15833
Línea 223... Línea 223...
223
            oldMessages={oldMessages}
223
            oldMessages={oldMessages}
224
            newMessages={newMessages}
224
            newMessages={newMessages}
225
            onScrollToBottom={scrollToBottom}
225
            onScrollToBottom={scrollToBottom}
226
            chatType={type}
226
            chatType={type}
227
          />
227
          />
228
          {/* {messages.map((message) => (
-
 
229
            <Message message={message} />
-
 
230
          ))} */}
-
 
231
          <div ref={divToScroll}></div>
228
          <div ref={divToScroll}></div>
232
        </div>
229
        </div>
233
      </div>
230
      </div>
234
      <div className={styles.chat__input__container}>
231
      <div className={styles.chat__input__container}>
235
        {showEmojione && <Emojione onClickEmoji={onClickEmoji} />}
232
        {showEmojione && <Emojione onClickEmoji={onClickEmoji} />}
Línea 237... Línea 234...
237
          onSubmit={handleSubmit(onHandleSubmit)}
234
          onSubmit={handleSubmit(onHandleSubmit)}
238
          encType="multipart/form-data"
235
          encType="multipart/form-data"
239
        >
236
        >
240
          <button
237
          <button
241
            type="button"
238
            type="button"
242
            className={`${styles.inputIcon} ti-clip icon uploadFile`}
239
            className={styles.icon_btn}
243
            id="uploadFile"
-
 
244
            onClick={() => {
-
 
245
              fileInputEl.current.click();
240
            onClick={() => fileInputEl.current.click()}
246
            }}
241
          >
-
 
242
            <AttachFileIcon />
247
          ></button>
243
          </button>
248
          <button
244
          <button
249
            type="button"
245
            type="button"
250
            className={`${styles.inputIcon} ti-face-smile icon btn-emoji`}
246
            className={styles.icon_btn}
251
            id="toggle-emoji"
-
 
252
            onClick={() => {
-
 
253
              setShowEmojione(!showEmojione);
247
            onClick={() => setShowEmojione(!showEmojione)}
254
            }}
248
          >
-
 
249
            <InsertEmoticonIcon />
255
          ></button>
250
          </button>
256
          <input
251
          <input
257
            type="file"
252
            type="file"
258
            name="file"
-
 
259
            id="file"
-
 
260
            ref={(e) => {
-
 
261
              fileInputEl.current = e;
253
            ref={(e) => (fileInputEl.current = e)}
262
            }}
-
 
263
            accept={permittedFiles}
254
            accept={permittedFiles}
264
            hidden
-
 
265
            onChange={handleUploadFile}
255
            onChange={handleUploadFile}
-
 
256
            hidden
266
          />
257
          />
267
          <textarea
258
          <textarea
268
            className={styles.chatInput}
259
            className={styles.chatInput}
269
            id="message"
-
 
270
            name="message"
-
 
271
            placeholder="Escribe un mensaje"
260
            placeholder="Escribe un mensaje"
272
            rows="1"
261
            rows="1"
273
            ref={inputTextEl}
262
            ref={inputTextEl}
274
          ></textarea>
263
          />
275
          <button type="submit" href="#" className={styles.sendBtn}>
264
          <button type="submit" className={styles.send_btn}>
276
            Enviar
265
            Enviar
277
          </button>
266
          </button>
278
        </form>
267
        </form>
279
      </div>
268
      </div>
280
      {selectedFile && (
269
      {selectedFile && (