Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2828 Rev 2829
Línea 8... Línea 8...
8
 
8
 
Línea 9... Línea 9...
9
import styles from "./shareFeed.module.scss";
9
import styles from "./shareFeed.module.scss";
10
 
10
 
11
const ShareFeed = (props) => {
11
const ShareFeed = (props) => {
Línea 12... Línea 12...
12
  // Reduce destructuring
12
  // Reduce destructuring
13
  const { openShareModal, feedType, postUrl } = props;
13
  const { openShareModal, feedType, postUrl, image } = props;
14
 
14
 
15
  const onClickHandler = (e, postType) => {
15
  const onClickHandler = (e, postType) => {
Línea 16... Línea 16...
16
    e.preventDefault()
16
    e.preventDefault()
17
    openShareModal(postUrl, postType, feedType);
17
    openShareModal(postUrl, postType, feedType);
18
  };
18
  };
-
 
19
 
-
 
20
  return (
-
 
21
    <div id="publica-feed" className={styles.shareFeed}>
-
 
22
      <form id="form-main" name="form-main" className={styles.formContainer}>
-
 
23
        <div className={styles.userInputContainer}>
19
 
24
          <img
20
  return (
25
            src={image}
21
    <div id="publica-feed" className={styles.shareFeed}>
26
            alt="User image profile"
22
      <form id="form-main" name="form-main" className={styles.formContainer}>
27
          />
23
        <input
28
          <input
24
          name="description-main"
29
            name="description-main"
25
          placeholder="Que estas pensando?"
30
            placeholder="Que estas pensando?"
-
 
31
            className="form-control"
26
          className="form-control"
32
            readOnly
27
          readOnly
33
            onClick={(e) => onClickHandler(e, shareModalTypes.POST)}
28
          onClick={(e) => onClickHandler(e, shareModalTypes.POST)}
34
          />
29
        />
35
        </div>
30
        <div className={styles.shareRowContainer}>
36
        <div className={styles.shareRowContainer}>