Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3953 Rev 3954
Línea 118... Línea 118...
118
    const handleShowConfirmModal = () => setShowConfirmModal(!showConfirmModal)
118
    const handleShowConfirmModal = () => setShowConfirmModal(!showConfirmModal)
Línea 119... Línea 119...
119
 
119
 
Línea 120... Línea 120...
120
    const handleModalAccept = () => onDeleteHandler(unique, link_delete)
120
    const handleModalAccept = () => onDeleteHandler(unique, link_delete)
121
 
121
 
122
    return (
-
 
123
        <>
122
    return (
124
            <li>
123
        <li>
125
                <div className="comment-container">
124
            <div className="comment-container">
126
                    <img
125
                <img
127
                        src={user_image}
126
                    src={user_image}
128
                        alt="user-image"
127
                    alt="user-image"
129
                        className='user-image'
128
                    className='user-image'
130
                    />
129
                />
131
                    <div className='comment-content'>
130
                <div className='comment-content'>
132
                        <div className='info'>
131
                    <div className='info'>
133
                            <a href={user_url}>
132
                        <a href={user_url}>
134
                                <h3>{user_name}</h3>
133
                            <h3>{user_name}</h3>
135
                            </a>
134
                        </a>
136
                            <span>
135
                        <span>
137
                                <img
136
                            <img
138
                                    src="/images/clock.png"
137
                                src="/images/clock.png"
139
                                    alt="Clock"
138
                                alt="Clock"
140
                                    className='mr-2'
139
                                className='mr-2'
141
                                />
140
                            />
142
                                {time_elapsed}
141
                            {time_elapsed}
143
                                {link_delete &&
142
                            {link_delete &&
144
                                    <button
143
                                <button
145
                                        className="btn-comment-trash"
144
                                    className="btn-comment-trash"
146
                                        onClick={handleShowConfirmModal}
145
                                    onClick={handleShowConfirmModal}
147
                                    >
146
                                >
148
                                        <i className="fa fa-trash"></i>
147
                                    <i className="fa fa-trash"></i>
149
                                    </button>
148
                                </button>
150
                                }
-
 
151
                            </span>
-
 
152
                        </div>
149
                            }
-
 
150
                        </span>
153
                        <p>{comment}</p>
151
                    </div>
154
                    </div>
152
                    <p>{comment}</p>
155
                </div>
153
                </div>
156
            </li >
154
            </div>
157
            <ConfirmModal
155
            <ConfirmModal
158
                show={showConfirmModal}
156
                show={showConfirmModal}
159
                onClose={() => setShowConfirmModal(false)}
157
                onClose={() => setShowConfirmModal(false)}
160
                onAccept={handleModalAccept}
158
                onAccept={handleModalAccept}
161
                acceptLabel="Aceptar"
159
                acceptLabel="Aceptar"
162
            />
160
            />
163
        </>
161
        </li >
Línea 164... Línea 162...
164
    );
162
    );