Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1158 Rev 1605
Línea 4... Línea 4...
4
import { useForm } from "react-hook-form";
4
import { useForm } from "react-hook-form";
5
import { axios } from "../../../utils";
5
import { axios } from "../../../utils";
6
import { addNotification } from "../../../redux/notification/notification.actions";
6
import { addNotification } from "../../../redux/notification/notification.actions";
7
import Spinner from "../../../shared/loading-spinner/Spinner";
7
import Spinner from "../../../shared/loading-spinner/Spinner";
8
import RequestTemplate from './invitationTemplate/InvitationTemplate'
8
import RequestTemplate from './invitationTemplate/InvitationTemplate'
-
 
9
import SearchList from "../../../components/SearchList";
-
 
10
import Profile from "../../../components/Profile";
Línea 9... Línea 11...
9
 
11
 
10
const InvitationsReceived = (props) => {
12
const InvitationsReceived = (props) => {
11
  // states
13
  // states
12
  const [invitations, setInvitations] = useState([]);
14
  const [invitations, setInvitations] = useState([]);
Línea 74... Línea 76...
74
  };
76
  };
Línea 75... Línea 77...
75
 
77
 
76
  return (
78
  return (
77
    <section className="companies-info" style={{ position: "relative" }}>
79
    <section className="companies-info" style={{ position: "relative" }}>
78
      <div className="container">
-
 
79
        <div className="company-title">
-
 
80
          <div className="section_admin_title_buttons">
-
 
81
            <div style={{ float: "left" }}>
-
 
82
              <h1 className="title">Invitaciones Recibidas</h1>
-
 
83
            </div>
-
 
84
          </div>
80
      <div className="container">
85
        </div>
-
 
86
 
-
 
87
        <div className="company-title">
-
 
88
          <div className="section_admin_title_buttons">
-
 
89
            <div className="form-group">
-
 
90
              <input
-
 
91
                type="text"
-
 
92
                name="search"
-
 
93
                id="search"
81
        <SearchList
94
                className="form-control"
-
 
95
                placeholder="Buscar"
-
 
96
                ref={register}
82
          title="Invitaciones Recibidas"
97
                onChange={handleSearch}
-
 
98
              />
-
 
99
            </div>
-
 
100
          </div>
83
          fetchCallback={fetchInvitationsReceived}
101
        </div>
84
        />
102
        <div
85
        <div
103
          className="companies-list"
86
          className="companies-list"
104
          style={{
87
          style={{
105
            padding: "0 15px",
88
            padding: "0 15px",
Línea 108... Línea 91...
108
          <div className="row" id="profiles-container">
91
          <div className="row" id="profiles-container">
109
            {
92
            {
110
              invitations.length
93
              invitations.length
111
                ?
94
                ?
112
                invitations.map((invitation, index) => (
95
                invitations.map((invitation, index) => (
113
                  <RequestTemplate
96
                  <Profile
114
                    invitation={invitation}
97
                    {...invitation}
115
                    onResponse={handleResponse}
-
 
116
                    key={index}
98
                    key={index}
-
 
99
                    fetchCallback={fetchInvitationsReceived}
117
                  />
100
                  />
118
                ))
101
                ))
119
                :
102
                :
120
                <div style={{ margin: "auto", textAlign: "center" }}>
103
                <div style={{ margin: "auto", textAlign: "center" }}>
121
                  Ningún registro coincidio con su consulta
104
                  Ningún registro coincidio con su consulta