Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7550 Rev 7573
Línea 2... Línea 2...
2
import { useEffect, useState } from "react";
2
import { useEffect, useState } from "react";
3
import { useForm } from "react-hook-form";
3
import { useForm } from "react-hook-form";
4
import axios from "axios";
4
import axios from "axios";
5
import Follower from "./follower/Follower";
5
import Follower from "./follower/Follower";
6
import PaginationComponent from "../../shared/PaginationComponent";
6
import PaginationComponent from "../../shared/PaginationComponent";
-
 
7
import ContentTitle from "../../shared/ContentTitle";
Línea 7... Línea 8...
7
 
8
 
8
const Followers = ({ backendVars }) => {
9
const Followers = ({ backendVars }) => {
9
  // backendVars destructuring
10
  // backendVars destructuring
10
  const { table_link } = backendVars;
11
  const { table_link } = backendVars;
Línea 58... Línea 59...
58
  const handleChangePage = (newPage) => {
59
  const handleChangePage = (newPage) => {
59
    setCurrentPage(newPage);
60
    setCurrentPage(newPage);
60
  };
61
  };
Línea 61... Línea 62...
61
 
62
 
62
  return (
63
  return (
63
    <section className="companies-info">
64
    <ContentTitle title="Seguidores">
64
      <div className="container">
65
      <div className="company-title">
-
 
66
        <div className="section_admin_title_buttons">
-
 
67
          <form
-
 
68
            name="form-connection-search"
-
 
69
            id="form-connection-search"
-
 
70
            onSubmit={(event) => event.preventDefault()}
65
        <div className="company-title">
71
          >
-
 
72
            <div className="form-group">
66
          <div className="section_admin_title_buttons">
73
              <input
-
 
74
                type="text"
-
 
75
                name="search"
67
            <div style={{ float: "left" }}>
76
                id="search"
-
 
77
                className="form-control"
-
 
78
                placeholder="Buscar"
-
 
79
                ref={register}
-
 
80
                onChange={handleSearch}
68
              <h1 className="title">Seguidores</h1>
81
              />
69
            </div>
-
 
70
          </div>
-
 
71
        </div>
-
 
72
 
-
 
73
        <div className="company-title">
-
 
74
          <div className="section_admin_title_buttons">
-
 
75
            <form
-
 
76
              name="form-connection-search"
-
 
77
              id="form-connection-search"
-
 
78
              onSubmit={(event) => event.preventDefault()}
-
 
79
            >
-
 
80
              <div className="form-group">
-
 
81
                <input
-
 
82
                  type="text"
-
 
83
                  name="search"
-
 
84
                  id="search"
-
 
85
                  className="form-control"
-
 
86
                  placeholder="Buscar"
-
 
87
                  ref={register}
-
 
88
                  onChange={handleSearch}
-
 
89
                />
-
 
90
              </div>
82
            </div>
91
            </form>
-
 
92
          </div>
83
          </form>
-
 
84
        </div>
Línea 93... Línea 85...
93
        </div>
85
      </div>
94
 
86
 
95
        <div className="companies-list">
87
      <div className="companies-list">
96
          <div
88
        <div
97
            className="row"
89
          className="row"
98
            id="profiles-container"
90
          id="profiles-container"
99
            style={{
91
          style={{
100
              position: "relative",
92
            position: "relative",
101
            }}
93
          }}
102
          >
94
        >
103
            {followers.map(({ image, name, link_view, link_inmail }, index) => (
95
          {followers.map(({ first_name, last_name, email, actions }, index) => (
104
              <Follower
96
            <Follower
105
                key={index}
97
              key={index}
106
                image={image}
-
 
107
                name={name}
98
              first_name={first_name}
108
                link_view={link_view}
-
 
109
                link_inmail={link_inmail}
-
 
110
              />
-
 
111
            ))}
99
              last_name={last_name}
112
            <PaginationComponent
-
 
113
              pages={pages}
-
 
114
              currentPage={currentPage}
100
              email={email}
115
              onChangePage={handleChangePage}
101
              actions={actions}
-
 
102
            />
-
 
103
          ))}
116
            />
104
          <PaginationComponent
-
 
105
            pages={pages}
-
 
106
            currentPage={currentPage}
117
          </div>
107
            onChangePage={handleChangePage}
118
          {/* <!--posts-section end--> */}
108
          />
119
        </div>
109
        </div>
120
      </div>
110
      </div>
121
    </section>
111
    </ContentTitle>
Línea 122... Línea 112...
122
  );
112
  );
123
};
113
};