Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 5766 Rev 5767
Línea 17... Línea 17...
17
    routeHeaderUpload,
17
    routeHeaderUpload,
18
    companyId,
18
    companyId,
19
    cover
19
    cover
20
  } = urlVars
20
  } = urlVars
Línea 21... Línea 21...
21
 
21
 
22
  const [coverPath, setCoverPath] = useState({
-
 
23
    path: `/storage/type/user-cover/code/${companyId}/${cover && `filename/${cover}`}`,
-
 
24
    uid: Date.now(),
-
 
Línea 25... Línea 22...
25
  });
22
  const [coverPath, setCoverPath] = useState('');
26
 
23
 
27
  const getData = async (url) => {
24
  const getData = async (url) => {
Línea 40... Línea 37...
40
      .then(resp => console.log(resp))
37
      .then(resp => console.log(resp))
41
      .catch(err => console.log(err))
38
      .catch(err => console.log(err))
Línea 42... Línea 39...
42
 
39
 
Línea -... Línea 40...
-
 
40
  }, []);
-
 
41
 
-
 
42
  useEffect(() => {
-
 
43
    if (cover) {
-
 
44
      setCoverPath(`/storage/type/company-cover/code/${companyId}/filename/${cover}`)
-
 
45
    }
-
 
46
 
43
  }, []);
47
  }, [cover]);
44
 
48
 
45
  return (
49
  return (
46
    <>
50
    <>
47
      <section className="content-header">
51
      <section className="content-header">
Línea 57... Línea 61...
57
      <div className="row">
61
      <div className="row">
58
        <div className="col-12">
62
        <div className="col-12">
59
          <section className="cover-sec">
63
          <section className="cover-sec">
60
            <img
64
            <img
61
              id="user-cover-img"
65
              id="user-cover-img"
62
              src={`${coverPath.path}`}
66
              src={coverPath}
63
              alt=""
67
              alt=""
64
            />
68
            />
65
            <div className="add-pic-box change-cover-image">
69
            <div className="add-pic-box change-cover-image">
66
              <div className="container">
70
              <div className="container">
67
                <div className="row no-gutters">
71
                <div className="row no-gutters">