Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1677 Rev 1684
Línea 1... Línea 1...
1
import React, { useEffect, useRef, useState } from 'react'
1
import React, { useEffect, useRef, useState } from 'react'
2
import { axios, scrollToBottom } from '../../utils'
-
 
3
import { useDispatch } from 'react-redux'
2
import { useDispatch } from 'react-redux'
-
 
3
 
-
 
4
import { axios, scrollToBottom } from '../../utils'
4
import { addNotification } from '../../redux/notification/notification.actions'
5
import { addNotification } from '../../redux/notification/notification.actions'
-
 
6
import useMessages from '../../hooks/useMessages'
Línea 5... Línea 7...
5
 
7
 
-
 
8
import Chat from './Chat'
6
import Chat from './Chat'
9
import MessagesList from './messages-list'
7
import ConferenceModal from '../modals/ConferenceModal'
-
 
8
import useMessages from '../../hooks/useMessages'
10
import ConferenceModal from '../modals/ConferenceModal'
Línea 9... Línea 11...
9
import ConfirmModal from '../modals/ConfirmModal'
11
import ConfirmModal from '../modals/ConfirmModal'
10
 
12
 
11
const CHAT_TABS = {
13
const CHAT_TABS = {
Línea 139... Línea 141...
139
          options={options}
141
          options={options}
140
        >
142
        >
141
          <Chat.Title url={profile}>{name}</Chat.Title>
143
          <Chat.Title url={profile}>{name}</Chat.Title>
142
        </Chat.Header>
144
        </Chat.Header>
Línea 143... Línea 145...
143
 
145
 
144
        <Chat.List
146
        <MessagesList
145
          messages={messages}
147
          messages={messages}
146
          onPagination={loadMore}
148
          onPagination={loadMore}
147
          loading={loading}
149
          loading={loading}
148
          scrollRef={scrollRef}
150
          scrollRef={scrollRef}
Línea 153... Línea 155...
153
          sendUrl={url_send}
155
          sendUrl={url_send}
154
          uploadUrl={url_upload}
156
          uploadUrl={url_upload}
155
          onSubmit={() => scrollToBottom(scrollRef)}
157
          onSubmit={() => scrollToBottom(scrollRef)}
156
        />
158
        />
157
      </Chat>
159
      </Chat>
-
 
160
 
158
      <ConferenceModal
161
      <ConferenceModal
159
        show={isShowConferenceModal}
162
        show={isShowConferenceModal}
160
        zoomUrl={url_zoom}
163
        zoomUrl={url_zoom}
161
        onClose={toggleConferenceModal}
164
        onClose={toggleConferenceModal}
162
      />
165
      />
-
 
166
 
163
      <ConfirmModal
167
      <ConfirmModal
164
        show={isShowConfirmModal}
168
        show={isShowConfirmModal}
165
        onClose={toggleConfirmModal}
169
        onClose={toggleConfirmModal}
166
        onAccept={() => deleteGroup(actionUrl.current)}
170
        onAccept={() => deleteGroup(actionUrl.current)}
167
      />
171
      />