Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4129 Rev 5104
Línea 1... Línea 1...
1
/* eslint-disable react/prop-types */
1
/* eslint-disable react/prop-types */
2
import React from "react";
2
import React from 'react'
3
import { useDispatch } from "react-redux";
3
import { useDispatch } from 'react-redux'
4
import { openShareModal } from "../../../redux/share-modal/shareModal.actions";
4
import { openShareModal } from '../../../redux/share-modal/shareModal.actions'
5
import { shareModalTypes } from "../../../redux/share-modal/shareModal.types";
5
import { shareModalTypes } from '../../../redux/share-modal/shareModal.types'
Línea 6... Línea 6...
6
 
6
 
7
const ShareFeed = ({
7
const ShareFeed = ({
8
  feedType,
8
  feedType,
9
  postUrl,
9
  postUrl,
10
  image
10
  image
11
}) => {
-
 
12
 
11
}) => {
13
  const dispatch = useDispatch()
12
  const dispatch = useDispatch()
Línea 14... Línea 13...
14
  const onClickHandler = (postType) => dispatch(openShareModal(postUrl, postType, feedType))
13
  const onClickHandler = (postType) => dispatch(openShareModal(postUrl, postType, feedType))
15
 
14
 
Línea 22... Línea 21...
22
            alt="User image profile"
21
            alt="User image profile"
23
            loading="lazy"
22
            loading="lazy"
24
          />
23
          />
25
          <input
24
          <input
26
            name="description-main"
25
            name="description-main"
27
            placeholder="¿En qué estás pensando?"
26
            placeholder={LABELS.WHAT_ARE_YOU_THINKING}
28
            className="form-control"
27
            className="form-control"
29
            readOnly
28
            readOnly
30
            onClick={(e) => {
29
            onClick={(e) => {
31
              e.preventDefault()
30
              e.preventDefault()
32
              onClickHandler(shareModalTypes.POST)
31
              onClickHandler(shareModalTypes.POST)
Línea 36... Línea 35...
36
        <div className='shareRowContainer'>
35
        <div className='shareRowContainer'>
37
          <button
36
          <button
38
            className='shareIconContainer'
37
            className='shareIconContainer'
39
            onClick={() => onClickHandler(shareModalTypes.VIDEO)}
38
            onClick={() => onClickHandler(shareModalTypes.VIDEO)}
40
          >
39
          >
41
            <img src="/images/icons/camera.png"  className='shareIcon' />
40
            <img src="/images/icons/camera.png" className='shareIcon' />
42
          </button>
41
          </button>
43
          <button
42
          <button
44
            className='shareIconContainer'
43
            className='shareIconContainer'
45
            onClick={() => onClickHandler(shareModalTypes.IMAGE)}
44
            onClick={() => onClickHandler(shareModalTypes.IMAGE)}
46
          >
45
          >
Línea 51... Línea 50...
51
            onClick={() => onClickHandler(shareModalTypes.FILE)}
50
            onClick={() => onClickHandler(shareModalTypes.FILE)}
52
          >
51
          >
53
            <img src="/images/icons/doc.png" className='shareIcon' />
52
            <img src="/images/icons/doc.png" className='shareIcon' />
54
          </button>
53
          </button>
55
          <button
54
          <button
56
            className={`shareIconContainer iconActive`}
55
            className={'shareIconContainer iconActive'}
57
            onClick={() => onClickHandler(shareModalTypes.POST)}
56
            onClick={() => onClickHandler(shareModalTypes.POST)}
58
          >
57
          >
59
            <img src="/images/icons/send.png" className='shareIcon' />
58
            <img src="/images/icons/send.png" className='shareIcon' />
60
          </button>
59
          </button>
61
        </div>
60
        </div>
62
      </div>
61
      </div>
63
    </div >
62
    </div>
64
  );
63
  )
65
};
64
}
Línea 66... Línea -...
66
 
-
 
67
export default ShareFeed
65
 
-
 
66
export default ShareFeed