Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3330 Rev 3331
Línea 13... Línea 13...
13
const DailyPulse = ({ dailyPulseUrl = '' }) => {
13
const DailyPulse = ({ dailyPulseUrl = '' }) => {
14
  const [isSubmitting, setIsSubmitting] = useState(false)
14
  const [isSubmitting, setIsSubmitting] = useState(false)
15
  const dispatch = useDispatch()
15
  const dispatch = useDispatch()
Línea 16... Línea 16...
16
 
16
 
17
  const { data, isLoading, mutate } = useFetch(dailyPulseUrl, {
17
  const { data, isLoading, mutate } = useFetch(dailyPulseUrl, {
18
    emojis_how_are_you_feel: '',
18
    emojis_how_are_you_feel: [],
19
    emojis_climate_on_your_organization: ''
19
    emojis_climate_on_your_organization: []
Línea 20... Línea 20...
20
  })
20
  })
21
 
21
 
22
  const saveEmoji = async (url = '') => {
22
  const saveEmoji = async (url = '') => {
Línea 63... Línea 63...
63
      <Widget.Body>
63
      <Widget.Body>
64
        <LoadingWrapper
64
        <LoadingWrapper
65
          loading={isLoading || isSubmitting}
65
          loading={isLoading || isSubmitting}
66
          displayChildren={isSubmitting}
66
          displayChildren={isSubmitting}
67
        >
67
        >
68
          <Typography variant='h4'>¿Como te sientes hoy?</Typography>
68
          <Typography variant='h4' textAlign='center'>
-
 
69
            ¿Como te sientes hoy?
-
 
70
          </Typography>
69
          <EmojiSelector
71
          <EmojiSelector
70
            options={data.emojis_how_are_you_feel}
72
            options={data.emojis_how_are_you_feel}
71
            onSelect={saveEmoji}
73
            onSelect={saveEmoji}
72
          />
74
          />
Línea 73... Línea 75...
73
 
75
 
74
          <Typography variant='h4'>
76
          <Typography variant='h4' textAlign='center'>
75
            ¿Como esta el clima en la organización?
77
            ¿Como esta el clima en la organización?
76
          </Typography>
78
          </Typography>
77
          <EmojiSelector
79
          <EmojiSelector
78
            options={data.emojis_climate_on_your_organization}
80
            options={data.emojis_climate_on_your_organization}