Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6407 Rev 6410
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
2
import { axios } from '../../../utils'
2
import { axios } from '../../../utils'
3
import { useForm } from 'react-hook-form'
3
import { useForm } from 'react-hook-form'
4
import { connect } from 'react-redux'
4
import { connect } from 'react-redux'
Línea -... Línea 5...
-
 
5
 
5
 
6
import { updateFeed } from '../../../redux/feed/feed.actions'
Línea -... Línea 7...
-
 
7
import { addNotification } from '../../../redux/notification/notification.actions'
-
 
8
 
-
 
9
import LockClockIcon from '@mui/icons-material/LockClock'
6
import { addNotification } from '../../../redux/notification/notification.actions'
10
import PublicIcon from '@mui/icons-material/Public'
7
 
-
 
Línea 8... Línea 11...
8
import styles from './survey.module.scss'
11
 
9
import { updateFeed } from '../../../redux/feed/feed.actions'
12
import styles from './survey.module.scss'
10
 
13
 
11
const SurveyForm = ({
14
const SurveyForm = ({
Línea 46... Línea 49...
46
  })
49
  })
Línea 47... Línea 50...
47
 
50
 
48
  return (
51
  return (
49
    <form onChange={sendVote} className={styles.survey_form}>
52
    <form onChange={sendVote} className={styles.survey_form}>
-
 
53
      <h3>{question}</h3>
-
 
54
      {resultType === 'pu' && (
50
      <h3>{question}</h3>
55
        <span>
-
 
56
          <PublicIcon /> El autor puede ver tu voto
-
 
57
        </span>
-
 
58
      )}
-
 
59
      {resultType === 'pr' && (
51
      {resultType === 'pu' && <p>El autor puede ver tu voto</p>}
60
        <span>
-
 
61
          <LockClockIcon /> Tu voto es privado
-
 
62
        </span>
52
      {resultType === 'pr' && <p>Tu voto es privado</p>}
63
      )}
53
      {answers.map(
64
      {answers.map(
54
        (option, index) =>
65
        (option, index) =>
55
          option && (
66
          option && (
56
            <div
67
            <div