Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2420 Rev 2421
Línea 22... Línea 22...
22
        }
22
        }
23
      });
23
      });
24
  }, []);
24
  }, []);
Línea 25... Línea 25...
25
 
25
 
26
  return (
26
  return (
27
    <div className="members-container d-sm-none d-none d-md-inline-block d-lg-inline-block w-100 overflow-hidden mt-4 border-gray border-radius">
27
    <div className="right-sidebar border-radius border-gray" style={{ height: "450px" }}>
28
      <div className="sd-title bg-white">
28
      <div className="sd-title">
29
        <h3>Quién ha visto este perfil</h3>
29
        <h3>Quién ha visto este perfil</h3>
-
 
30
      </div>
-
 
31
      <div
-
 
32
        className="mb-2"
-
 
33
        id="suggestions-similar-groups"
30
      </div>
34
        style={{ height: "80%", overflowY: "auto" }}
31
      {
35
      >
32
        peopleViewedProfile.length
36
        {peopleViewedProfile.length
33
          ?
37
          ?
34
          peopleViewedProfile.map(({ id, name, image, profile }) => (
38
          getData().map(({ id, name, image, profile }) => (
-
 
39
            <div className="suggestion-usd" key={id}>
35
            <div className="row bg-white p-1" key={id}>
40
              <div className="row">
-
 
41
                <div className="col-md-4 col-sm-12" >
-
 
42
                  <img
36
              <div className="col-md-4 col-sm-12 suggestion-usd d-flex justify-content-start align-items-center ph-10">
43
                    style={{ width: "50px", height: "auto" }}
-
 
44
                    src={image}
-
 
45
                    alt=""
37
                <img src={image} alt="user-image" />
46
                  />
38
              </div>
47
                </div>
39
              <div className="col-md-4 col-sm-12 suggestion-usd d-flex justify-content-start align-items-center p-0">
48
                <div className="col-md-8 col-sm-12 text-left">
40
                <div className="sgt-text">
49
                  <div className="sgt-text">
41
                  <h4
50
                    <h4
42
                    className="cursor-pointer"
51
                      className="cursor-pointer"
43
                    onClick={() => window.location.href = profile}
52
                      onClick={() => window.location.href = profile}
44
                  >
53
                    >
45
                    {name}
54
                      {name}
-
 
55
                    </h4>
46
                  </h4>
56
                  </div>
47
                </div>
57
                </div>
48
              </div>
58
              </div>
49
            </div>
59
            </div>
50
          ))
60
          ))
-
 
61
          : <div className="view-more">Sin sugerencias</div>
-
 
62
        }
-
 
63
      </div>
-
 
64
      {
-
 
65
        peopleViewedProfile.length >= 5
-
 
66
        &&
-
 
67
        <div className="w-100 text-center">
-
 
68
          <button className="btn btn-primary" onClick={() => setLookMore(!lookMore)}>
-
 
69
            {lookMore ? 'Ver menos' : 'Ver mas'}
-
 
70
          </button>
51
          : <div className="view-more">Sin visitas</div>
71
        </div>
52
      }
72
      }
53
    </div>
73
    </div>
54
  );
74
  );