Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3043 Rev 3044
Línea 5... Línea 5...
5
import { addNotification } from '../../redux/notification/notification.actions';
5
import { addNotification } from '../../redux/notification/notification.actions';
6
import { useDispatch } from 'react-redux';
6
import { useDispatch } from 'react-redux';
Línea 7... Línea 7...
7
 
7
 
Línea 8... Línea 8...
8
const permittedFiles = "video/mp4, video/mpeg, video/webm, application/pdf, image/jpeg, image/png, image/jpg";
8
const permittedFiles = "video/mp4, video/mpeg, video/webm, application/pdf, image/jpeg, image/png, image/jpg";
Línea 9... Línea 9...
9
 
9
 
10
const MessageBox = ({ onSend, backendVars, sendLink }) => {
10
const MessageBox = ({ onSend, backendVars, sendLink, setMsgs }) => {
11
 
11
 
12
    const fileInputEl = useRef(null);
12
    const fileInputEl = useRef(null);
Línea 36... Línea 36...
36
                    return dispatch(addNotification({
36
                    return dispatch(addNotification({
37
                        style: "danger",
37
                        style: "danger",
38
                        msg: "Ha ocurrido un error"
38
                        msg: "Ha ocurrido un error"
39
                    }))
39
                    }))
40
                }
40
                }
-
 
41
 
-
 
42
                setMsgs(prev => [data.data, ...prev])
41
                setSelectedFile("");
43
                setSelectedFile("");
42
                setShowEmojione(false);
-
 
43
            });
44
            });
44
    };
45
    };
Línea 45... Línea 46...
45
 
46
 
46
    return (
47
    return (