Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7317 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7317 Rev 7326
Línea 1... Línea 1...
1
import React, { useRef, useState } from 'react'
1
import React, { useRef, useState } from 'react'
2
import { axios } from '../../../utils'
2
import { axios } from '../../../utils'
3
import { addNotification } from '../../../redux/notification/notification.actions'
3
import { addNotification } from '../../../redux/notification/notification.actions'
4
import { useDispatch, useSelector } from 'react-redux'
4
import { useDispatch, useSelector } from 'react-redux'
-
 
5
 
5
import SendFileModal from '../../modals/FileModal'
6
import IconButton from '@mui/material/IconButton'
6
import AttachFileIcon from '@mui/icons-material/AttachFile'
7
import AttachFileIcon from '@mui/icons-material/AttachFile'
7
import SentimentVerySatisfiedRoundedIcon from '@mui/icons-material/SentimentVerySatisfiedRounded'
8
import SentimentVerySatisfiedRoundedIcon from '@mui/icons-material/SentimentVerySatisfiedRounded'
Línea 8... Línea 9...
8
 
9
 
-
 
10
import Emojione from '../emojione/Emojione'
Línea 9... Línea 11...
9
import Emojione from '../emojione/Emojione'
11
import SendFileModal from '../../modals/FileModal'
10
 
12
 
11
const TextBox = ({
13
const TextBox = ({
12
  uploadUrl = '',
14
  uploadUrl = '',
Línea 75... Línea 77...
75
  }
77
  }
Línea 76... Línea 78...
76
 
78
 
77
  return (
79
  return (
78
    <>
80
    <>
79
      <div className="chat-text_box">
81
      <div className="chat-text_box">
80
        <button className="btn" onClick={toggleFileModal}>
82
        <IconButton onClick={toggleFileModal}>
81
          <AttachFileIcon />
83
          <AttachFileIcon />
82
        </button>
84
        </IconButton>
83
        <button className="btn" onClick={handleShowEmojiTab}>
85
        <IconButton onClick={handleShowEmojiTab}>
84
          <SentimentVerySatisfiedRoundedIcon />
86
          <SentimentVerySatisfiedRoundedIcon />
85
        </button>
87
        </IconButton>
86
        <textarea
88
        <textarea
87
          placeholder={labels.write_a_message}
89
          placeholder={labels.write_a_message}
88
          onKeyDown={onKeyDown}
90
          onKeyDown={onKeyDown}
89
          ref={textAreaEl}
91
          ref={textAreaEl}