Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7212 Rev 7213
Línea 129... Línea 129...
129
 
129
 
130
  const onView = (url = '') => {
130
  const onView = (url = '') => {
131
    history.replace(url)
131
    history.replace(url)
Línea -... Línea 132...
-
 
132
  }
-
 
133
 
-
 
134
  const goBack = () => {
-
 
135
    history.goBack()
132
  }
136
  }
133
 
137
 
134
  return (
138
  return (
135
    <StyledQuestionCard>
139
    <StyledQuestionCard>
136
      <QuestionDetails>
140
      <QuestionDetails>
Línea 150... Línea 154...
150
      </QuestionDetails>
154
      </QuestionDetails>
Línea 151... Línea 155...
151
 
155
 
152
      <h2>{title}</h2>
156
      <h2>{title}</h2>
153
      <span>{`${labels.my_coach_question} ${added_on}`}</span>
157
      <span>{`${labels.my_coach_question} ${added_on}`}</span>
154
      {last_answer_on && (
158
      {last_answer_on && (
155
        <span>{`${labels.my_coach_question} ${last_answer_on}`}</span>
159
        <span>{`${labels.my_coach_last_answer} ${last_answer_on}`}</span>
156
      )}
160
      )}
Línea 157... Línea 161...
157
      <p className="my-3">{description}</p>
161
      <p className="my-3">{description}</p>
158
 
162
 
Línea 163... Línea 167...
163
        <span>{`${comments} ${labels.comments}`}</span>
167
        <span>{`${comments} ${labels.comments}`}</span>
164
      </QuestionStats>
168
      </QuestionStats>
Línea 165... Línea 169...
165
 
169
 
166
      <QuestionActions>
170
      <QuestionActions>
167
        {link_answers && (
-
 
168
          <button
171
        {link_answers && (
169
            className="btn feed__share-option"
-
 
170
            onClick={() => onView(link_view)}
-
 
171
          >
172
          <button className="btn feed__share-option" onClick={goBack}>
172
            <ArrowBackIosNewIcon />
173
            <ArrowBackIosNewIcon />
173
            {labels.back}
174
            {labels.back}
174
          </button>
175
          </button>
175
        )}
176
        )}