Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5211 Rev 5212
Línea 5... Línea 5...
5
import { addNotification } from '../../../redux/notification/notification.actions'
5
import { addNotification } from '../../../redux/notification/notification.actions'
6
import { axios } from '../../../utils'
6
import { axios } from '../../../utils'
Línea 7... Línea 7...
7
 
7
 
8
const DailyPulse = ({ routeDailyPulse }) => {
8
const DailyPulse = ({ routeDailyPulse }) => {
-
 
9
  const [points, setPoints] = useState(0)
9
  const [points, setPoints] = useState(0)
10
  const [isMounted, setIsMounted] = useState(false)
10
  const [emojisHowAreYouFeel, setEmojisHowAreYouFeel] = useState([])
11
  const [emojisHowAreYouFeel, setEmojisHowAreYouFeel] = useState([])
11
  const [emojisClimateOnYourOrganization, setEmojisClimateOnYourOrganization] = useState([])
12
  const [emojisClimateOnYourOrganization, setEmojisClimateOnYourOrganization] = useState([])
Línea 12... Línea 13...
12
  const dispatch = useDispatch()
13
  const dispatch = useDispatch()
Línea 43... Línea 44...
43
      console.log(error)
44
      console.log(error)
44
    }
45
    }
45
  }
46
  }
Línea 46... Línea 47...
46
 
47
 
-
 
48
  useEffect(() => {
47
  useEffect(() => {
49
    setIsMounted(true)
48
    getData()
50
    getData()
Línea 49... Línea 51...
49
  }, [])
51
  }, [])
50
 
52
 
Línea 55... Línea 57...
55
      </div>
57
      </div>
56
      <span>Puntos acumulados: {points}</span>
58
      <span>Puntos acumulados: {points}</span>
57
      <h4>¿Como te sientes hoy?</h4>
59
      <h4>¿Como te sientes hoy?</h4>
58
      {emojisHowAreYouFeel.map(({ link_save, id, image }, index) =>
60
      {emojisHowAreYouFeel.map(({ link_save, id, image }, index) =>
59
        <a key={id} href={link_save} onClick={() => handleEmojiSave(link_save)}>
61
        <a key={id} href={link_save} onClick={() => handleEmojiSave(link_save)}>
60
          <img className='fadedown' src={image} style={{ width: '32px', height: '32px', animationDelay: `${index}00ms` }} />
62
          <img className={isMounted && 'fadedown'} src={image} style={{ width: '32px', height: '32px', animationDelay: `${index}00ms` }} />
61
        </a>
63
        </a>
62
      )}
64
      )}
63
      <h4>¿Como esta el clima en la organización ?</h4>
65
      <h4>¿Como esta el clima en la organización ?</h4>
64
      {emojisClimateOnYourOrganization.map(({ link_save, id, image }, index) =>
66
      {emojisClimateOnYourOrganization.map(({ link_save, id, image }, index) =>
65
        <a key={id} href={link_save} onClick={() => handleEmojiSave(link_save)}>
67
        <a key={id} href={link_save} onClick={() => handleEmojiSave(link_save)}>
66
          <img className='fadedown' src={image} style={{ width: '32px', height: '32px', animationDelay: `${index}00ms` }} />
68
          <img className={isMounted && 'fadedown'} src={image} style={{ width: '32px', height: '32px', animationDelay: `${index}00ms` }} />
67
        </a>
69
        </a>
68
      )}
70
      )}
69
    </div>
71
    </div>
70
  )
72
  )
71
}
73
}