Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6890 Rev 6975
Línea 8... Línea 8...
8
 
8
 
9
import ImageModal from '../../modals/ImageModal'
9
import ImageModal from '../../modals/ImageModal'
10
import CoverModal from '../../cover/CoverModal'
10
import CoverModal from '../../cover/CoverModal'
11
import OverviewModal from '../../overview/OverviewModal'
11
import OverviewModal from '../../overview/OverviewModal'
12
import ConfirmModal from '../../modals/ConfirmModal'
12
import ConfirmModal from '../../modals/ConfirmModal'
Línea 13... Línea 13...
13
import { useLocation } from 'react-router-dom'
13
import { Link, useLocation } from 'react-router-dom'
14
 
14
 
15
const ProfileCard = ({
15
const ProfileCard = ({
16
  full_name: fullName = '',
16
  full_name: fullName = '',
Línea 146... Línea 146...
146
              <div
146
              <div
147
                className="d-inline-flex align-items-center mt-2"
147
                className="d-inline-flex align-items-center mt-2"
148
                style={{ gap: '1rem' }}
148
                style={{ gap: '1rem' }}
149
              >
149
              >
150
                <span>{formattedAddress}</span>
150
                <span>{formattedAddress}</span>
151
                <a
151
                <Link
152
                  href=""
-
 
153
                  onClick={(e) => {
152
                  onClick={(e) => {
154
                    e.preventDefault()
153
                    e.preventDefault()
155
                    setModalToShow('info')
154
                    setModalToShow('info')
156
                  }}
155
                  }}
157
                >
156
                >
158
                  {labels.personal_info}
157
                  {labels.personal_info}
159
                </a>
158
                </Link>
160
              </div>
159
              </div>
161
              <div
160
              <div
162
                className="d-inline-flex align-items-center mt-2"
161
                className="d-inline-flex align-items-center mt-2"
163
                style={{ gap: '1rem' }}
162
                style={{ gap: '1rem' }}
164
              >
163
              >
165
                {Boolean(totalConnections) && view_total_connections && (
164
                {Boolean(totalConnections) && view_total_connections && (
166
                  <a href="/connection/my-connections" target="_blank">
165
                  <Link to="/connection/my-connections">
167
                    {`${totalConnections} ${labels.connections}`}
166
                    {`${totalConnections} ${labels.connections}`}
168
                  </a>
167
                  </Link>
169
                )}
168
                )}
170
                {Boolean(follower) && view_following && (
169
                {Boolean(follower) && view_following && (
171
                  <a
170
                  <Link
172
                    href=""
-
 
173
                    className="cursor-auto"
171
                    className="cursor-auto"
174
                    onClick={(e) => e.preventDefault()}
172
                    onClick={(e) => e.preventDefault()}
175
                  >
173
                  >
176
                    {`${follower} ${labels.followers}`}
174
                    {`${follower} ${labels.followers}`}
177
                  </a>
175
                  </Link>
178
                )}
176
                )}
179
                {Boolean(following) && view_following && (
177
                {Boolean(following) && view_following && (
180
                  <a href="/company/following-companies" target="_blank">
178
                  <Link to="/company/following-companies">
181
                    {`${following} ${labels.following}`}
179
                    {`${following} ${labels.following}`}
182
                  </a>
180
                  </Link>
183
                )}
181
                )}
184
              </div>
182
              </div>
185
              <div className="button-actions mt-2">
183
              <div className="button-actions mt-2">
186
                {connectionUrl && isAdded && (
184
                {connectionUrl && isAdded && (
187
                  <button
185
                  <button
Línea 190... Línea 188...
190
                  >
188
                  >
191
                    {labels.cancel}
189
                    {labels.cancel}
192
                  </button>
190
                  </button>
193
                )}
191
                )}
194
                {connectionUrl && !isAdded && (
192
                {connectionUrl && !isAdded && (
195
                  <button
-
 
196
                    className="btn button btn-primary"
193
                  <button className="btn button btn-primary" onClick={connect}>
197
                    onClick={() => connect()}
-
 
198
                  >
-
 
199
                    {labels.connect}
194
                    {labels.connect}
200
                  </button>
195
                  </button>
201
                )}
196
                )}
202
                {showContact && (
197
                {showContact && (
203
                  <a href={linkInmail} className="btn button btn-secondary">
198
                  <Link href={linkInmail} className="btn button btn-secondary">
204
                    {labels.message}
199
                    {labels.message}
205
                  </a>
200
                  </Link>
206
                )}
201
                )}
207
              </div>
202
              </div>
208
            </div>
203
            </div>
209
            <div className="card-experiences">
204
            <div className="card-experiences">
210
              <ul>
205
              <ul>