Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 198 Rev 218
Línea 266... Línea 266...
266
 
266
 
267
const SubmitForm = ({ sendUrl, uploadUrl, onSubmit: onComplete }) => {
267
const SubmitForm = ({ sendUrl, uploadUrl, onSubmit: onComplete }) => {
268
  const [showEmojione, setShowEmojione] = useState(false);
268
  const [showEmojione, setShowEmojione] = useState(false);
269
  const [isShowFileModal, setIsShowFileModal] = useState(false);
269
  const [isShowFileModal, setIsShowFileModal] = useState(false);
-
 
270
  const [isSending, setIsSending] = useState(false);
270
  const [isSending, setIsSending] = useState(false);
271
  const inputFile = useRef(null);
Línea 271... Línea 272...
271
  const dispatch = useDispatch();
272
  const dispatch = useDispatch();
Línea 272... Línea 273...
272
 
273
 
Línea 323... Línea 324...
323
 
324
 
324
  const toggleFileModal = () => {
325
  const toggleFileModal = () => {
325
    setIsShowFileModal(!isShowFileModal);
326
    setIsShowFileModal(!isShowFileModal);
Línea -... Línea 327...
-
 
327
  };
-
 
328
 
-
 
329
  const toggleFile = () => {
-
 
330
    inputFile.current?.click();
326
  };
331
  };
327
 
332
 
328
  const onClickEmoji = (event) => {
333
  const onClickEmoji = (event) => {
329
    const shortname = event.currentTarget.dataset.shortname;
334
    const shortname = event.currentTarget.dataset.shortname;
330
    const currentMessage = getValues("message");
335
    const currentMessage = getValues("message");
Línea 335... Línea 340...
335
 
340
 
336
  return (
341
  return (
337
    <>
342
    <>
338
      <StyledForm onSubmit={onSubmit}>
343
      <StyledForm onSubmit={onSubmit}>
339
        {showEmojione && <Emojione onClickEmoji={onClickEmoji} />}
344
        {showEmojione && <Emojione onClickEmoji={onClickEmoji} />}
340
        <IconButton onClick={toggleFileModal}>
345
        <IconButton onClick={toggleFile}>
341
          <AttachFileIcon />
346
          <AttachFileIcon />
-
 
347
        </IconButton>
342
        </IconButton>
348
        <input type="file" ref={inputFile} hidden />
343
        <IconButton onClick={toggleEmojione}>
349
        <IconButton onClick={toggleEmojione}>
344
          <InsertEmoticonIcon />
350
          <InsertEmoticonIcon />
345
        </IconButton>
351
        </IconButton>
346
        <StyledInput
352
        <StyledInput