Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2755 Rev 2757
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
Línea 2... Línea 2...
2
 
2
 
Línea 3... Línea 3...
3
export default ({ conversations = [], click, selectedConversation, showConversation, handleShowConversation }) => {
3
export default ({ conversations = [], click, selectedConversation, handleShowConversation }) => {
4
 
4
 
Línea 5... Línea 5...
5
    const [conversationSearch, setConversationSearch] = useState('');
5
    const [conversationSearch, setConversationSearch] = useState('');
6
    const filtredConversations = conversations.filter((conversation) => conversation.name.includes(conversationSearch))
6
    const filtredConversations = conversations.filter((conversation) => conversation.name.includes(conversationSearch))
7
 
7
 
8
    const handleConversation = (element) => {
8
    const handleConversation = (element) => {
Línea 9... Línea 9...
9
        handleShowConversation(true);
9
        handleShowConversation(true);
10
        click(element)
10
        click(element)
11
    }
11
    }
12
 
12
 
13
    return (
13
    return (
14
        <div style={{ overflowY: 'scroll' }} className={`${showConversation && 'msgs-hide'}`}>
14
        <div style={{ overflowY: 'scroll' }} >
15
            {/*  messages-list */}
15
            {/*  messages-list */}