Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1979 Rev 3047
Línea 1... Línea 1...
1
import React, { useEffect, useState } from 'react'
1
import React, { useEffect, useState } from 'react'
2
import { useDispatch, useSelector } from 'react-redux'
2
import { useDispatch, useSelector } from 'react-redux'
3
import { IconButton } from '@mui/material'
3
import { IconButton } from '@mui/material'
4
import { Edit } from '@mui/icons-material'
4
import { Edit } from '@mui/icons-material'
Línea 5... Línea 5...
5
 
5
 
6
import { axios } from '@app/utils'
6
import { axios } from '@utils'
Línea 7... Línea 7...
7
import { addNotification } from '@app/redux/notification/notification.actions'
7
import { addNotification } from '@store/notification/notification.actions'
8
 
8
 
9
import TagsList from '@app/components/UI/TagsList'
9
import Widget from '@components/UI/Widget'
Línea 10... Línea 10...
10
import ProfileWidget from '../ProfileWidget'
10
import TagsList from '@components/UI/TagsList'
11
import LanguagesModal from './LanguagesModal'
11
import LanguagesModal from './LanguagesModal'
12
 
12
 
Línea 49... Línea 49...
49
    setLanguages(defaultLanguages)
49
    setLanguages(defaultLanguages)
50
  }, [defaultLanguages])
50
  }, [defaultLanguages])
Línea 51... Línea 51...
51
 
51
 
52
  return (
52
  return (
53
    <>
53
    <>
-
 
54
      <Widget>
54
      <ProfileWidget
55
        <Widget.Header
55
        title={labels.languages}
56
          title={labels.languages}
-
 
57
          renderAction={() => {
56
        action={
58
            if (!edit) return
57
          edit && (
59
            return (
58
            <IconButton onClick={toggleModal}>
60
              <IconButton onClick={toggleModal}>
59
              <Edit />
61
                <Edit />
60
            </IconButton>
62
              </IconButton>
61
          )
63
            )
62
        }
64
          }}
-
 
65
        />
63
      >
66
        <Widget.Body>
-
 
67
          <TagsList tags={languages} />
64
        <TagsList tags={languages} />
68
        </Widget.Body>
Línea 65... Línea 69...
65
      </ProfileWidget>
69
      </Widget>
66
 
70
 
67
      <LanguagesModal
71
      <LanguagesModal
68
        show={showModal}
72
        show={showModal}