Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3019 Rev 3020
Línea 5... Línea 5...
5
 
5
 
6
import { axios } from '@utils'
6
import { axios } from '@utils'
7
import { updateFeed } from '@store/feed/feed.actions'
7
import { updateFeed } from '@store/feed/feed.actions'
Línea 8... Línea -...
8
import { addNotification } from '@store/notification/notification.actions'
-
 
9
 
8
import { addNotification } from '@store/notification/notification.actions'
10
import styles from './survey.module.scss'
9
 
Línea 11... Línea 10...
11
import Widget from '@components/UI/Widget'
10
import Widget from '@components/UI/Widget'
12
import CheckboxInput from '@components/UI/inputs/Checkbox'
11
import CheckboxInput from '@components/UI/inputs/Checkbox'
Línea 115... Línea 114...
115
          >
114
          >
116
            <LockClock /> Privado
115
            <LockClock /> Privado
117
          </Typography>
116
          </Typography>
118
        )}
117
        )}
Línea 119... Línea 118...
119
 
118
 
120
        <form onChange={sendVote} className={styles.survey_form}>
119
        <form onChange={sendVote}>
121
          {answers.map((answer, index) => {
120
          {answers.map((answer, index) => {
Línea 122... Línea 121...
122
            if (answer === null) return null
121
            if (answer === null) return null
123
 
122
 
Línea 149... Línea 148...
149
                    alignItems: 'center',
148
                    alignItems: 'center',
150
                    gap: 0.5
149
                    gap: 0.5
151
                  }}
150
                  }}
152
                />
151
                />
Línea 153... Línea 152...
153
 
152
 
154
                {totalVotes && (
153
                {totalVotes ? (
155
                  <Typography variant='overline'>
154
                  <Typography variant='overline'>
156
                    {getPorcentage(votes[index], totalVotes)}%
155
                    {getPorcentage(votes[index], totalVotes)}%
157
                  </Typography>
156
                  </Typography>
158
                )}
157
                ) : null}
159
              </AnswerContainer>
158
              </AnswerContainer>
160
            )
159
            )
Línea 161... Línea 160...
161
          })}
160
          })}