Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6897 Rev 6899
Línea 6... Línea 6...
6
import { addNotification } from '../../redux/notification/notification.actions'
6
import { addNotification } from '../../redux/notification/notification.actions'
Línea 7... Línea 7...
7
 
7
 
8
import Overview from '../../components/overview/Overview'
8
import Overview from '../../components/overview/Overview'
Línea 9... Línea 9...
9
import GroupActions from '../../components/group/GroupActions'
9
import GroupActions from '../../components/group/GroupActions'
-
 
10
 
-
 
11
// import Type from '../../components/group/type/Type'
-
 
12
import Website from '../../components/group/website/Website'
-
 
13
import Privacy from '../../components/group/privacy/Privacy'
Línea 10... Línea -...
10
 
-
 
11
import './styles/linkedin.scss'
-
 
12
 
-
 
13
// import Accessibility from '../components/accessibility/Accessibility'
14
import Industry from '../../components/group/industry/Industry'
14
// import Industry from '../components/industry/Industry'
-
 
Línea 15... Línea 15...
15
// import Privacy from '../components/privacy/Privacy'
15
// import Accessibility from '../../components/group/accessibility/Accessibility'
16
// import Type from '../components/type/Type'
16
 
17
// import Website from '../components/website/Website'
17
import './styles/linkedin.scss'
18
 
18
 
Línea -... Línea 19...
-
 
19
const Edit = () => {
-
 
20
  const [backendVars, setBackendVars] = useState({})
-
 
21
  const dispatch = useDispatch()
-
 
22
  const { uuid } = useParams()
-
 
23
 
-
 
24
  const changePrivacy = (privacy) => {
-
 
25
    setBackendVars((prevBackendVars) => {
-
 
26
      return {
-
 
27
        ...prevBackendVars,
19
const Edit = () => {
28
        privacy,
20
  const [backendVars, setBackendVars] = useState({})
29
      }
21
  const dispatch = useDispatch()
30
    })
22
  const { uuid } = useParams()
31
  }
Línea 46... Línea 55...
46
      <div className="container">
55
      <div className="container">
47
        <div className="main d-flex flex-column" style={{ gap: '1rem' }}>
56
        <div className="main d-flex flex-column" style={{ gap: '1rem' }}>
48
          <GroupActions {...backendVars} />
57
          <GroupActions {...backendVars} />
49
          <Overview groupId={uuid} overview={backendVars?.overview} />
58
          <Overview groupId={uuid} overview={backendVars?.overview} />
50
          {/* <Type
59
          {/* <Type
51
            groupId={groupId}
60
            groupId={uuid}
52
            groupType={groupType}
61
            groupType={backendVars?.groupType}
53
            groupTypes={groupTypes}
62
            groupTypes={backendVars?.groupTypes}
54
          />
63
          /> */}
55
          <Industry
64
          <Industry
56
            groupId={groupId}
65
            groupId={uuid}
57
            industry={industry}
66
            industry={backendVars?.industry}
58
            industries={industries}
67
            industries={backendVars?.industries}
59
          />
68
          />
60
          <Privacy
69
          <Privacy
61
            groupId={groupId}
70
            groupId={uuid}
62
            privacy={privacy}
71
            privacy={backendVars?.privacy}
63
            privacies={privacies}
72
            privacies={backendVars?.privacies}
64
            setSettedPrivacy={setSettedPrivacy}
-
 
65
            settedPrivacy={settedPrivacy}
73
            onChange={changePrivacy}
66
            setSettedAccesibility={setSettedAccesibility}
-
 
67
          />
74
          />
68
          <Accessibility
75
          {/* <Accessibility
69
            groupId={groupId}
76
            groupId={uuid}
70
            accessibility={settedAccesibility}
-
 
71
            accessibilities={accessibilities}
-
 
72
            privacy={settedPrivacy}
77
            privacy={settedPrivacy}
-
 
78
            accessibility={settedAccesibility}
-
 
79
            accessibilities={backendVars?.accessibilities}
73
            setSettedAccesibility={setSettedAccesibility}
80
            setSettedAccesibility={setSettedAccesibility}
74
          />
81
          /> */}
75
          <Website groupId={groupId} website={website} /> */}
82
          <Website groupId={uuid} website={backendVars?.website} />
76
        </div>
83
        </div>
77
      </div>
84
      </div>
78
    </main>
85
    </main>
79
  )
86
  )
80
}
87
}