Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 530 Rev 531
Línea 7... Línea 7...
7
import OpenInNewIcon from '@mui/icons-material/OpenInNew'
7
import OpenInNewIcon from '@mui/icons-material/OpenInNew'
8
import EditIcon from '@mui/icons-material/Edit'
8
import EditIcon from '@mui/icons-material/Edit'
9
import DeleteIcon from '@mui/icons-material/Delete'
9
import DeleteIcon from '@mui/icons-material/Delete'
10
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew'
10
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew'
11
import Paraphrase from '../UI/Paraphrase'
11
import Paraphrase from '../UI/Paraphrase'
12
import WidgetLayout from '../widgets/WidgetLayout'
12
import StyledContainer from '../widgets/WidgetLayout'
13
 
-
 
14
export const StyledQuestionCard = styled(WidgetLayout)`
-
 
15
  padding: 1rem 0;
-
 
16
  height: fit-content;
-
 
17
  & > * {
-
 
18
    padding-right: 0.8rem;
-
 
19
    padding-left: 0.8rem;
-
 
20
  }
-
 
21
`
-
 
Línea 22... Línea 13...
22
 
13
 
23
export const QuestionDetails = styled.div`
14
export const QuestionDetails = styled.div`
24
  display: flex;
15
  display: flex;
25
  align-items: center;
16
  align-items: center;
Línea 120... Línea 111...
120
  const goBack = () => {
111
  const goBack = () => {
121
    history.replace('/my-coach')
112
    history.replace('/my-coach')
122
  }
113
  }
Línea 123... Línea 114...
123
 
114
 
124
  return (
115
  return (
125
    <StyledQuestionCard>
116
    <StyledContainer>
126
      <QuestionDetails>
117
      <QuestionDetails>
127
        <QuestionUserInfo>
118
        <QuestionUserInfo>
128
          <Avatar
119
          <Avatar
129
            src={user_image}
120
            src={user_image}
Línea 151... Línea 142...
151
        <span>{`${reactions} ${labels.my_coach_reactions}`}</span>
142
        <span>{`${reactions} ${labels.my_coach_reactions}`}</span>
152
        <span>{`${views} ${labels.my_coach_views}`}</span>
143
        <span>{`${views} ${labels.my_coach_views}`}</span>
153
        <span>{`${comments} ${labels.comments}`}</span>
144
        <span>{`${comments} ${labels.comments}`}</span>
154
      </QuestionStats>
145
      </QuestionStats>
Línea 155... Línea 146...
155
 
146
 
156
      <QuestionActions>
147
      <StyledContainer.Actions>
157
        {link_answers && (
148
        {link_answers && (
158
          <button className="btn feed__share-option" onClick={goBack}>
149
          <button onClick={goBack}>
159
            <ArrowBackIosNewIcon />
150
            <ArrowBackIosNewIcon />
160
            {labels.back}
151
            {labels.back}
161
          </button>
152
          </button>
162
        )}
153
        )}
163
        {link_view && (
-
 
164
          <button
-
 
165
            className="btn feed__share-option"
154
        {link_view && (
166
            onClick={() => onView(link_view)}
-
 
167
          >
155
          <button onClick={() => onView(link_view)}>
168
            <OpenInNewIcon />
156
            <OpenInNewIcon />
169
            {labels.view}
157
            {labels.view}
170
          </button>
158
          </button>
171
        )}
159
        )}
172
        {link_edit && (
-
 
173
          <button
-
 
174
            className="btn feed__share-option"
160
        {link_edit && (
175
            onClick={() => onEdit(link_edit)}
-
 
176
          >
161
          <button onClick={() => onEdit(link_edit)}>
177
            <EditIcon />
162
            <EditIcon />
178
            {labels.edit}
163
            {labels.edit}
179
          </button>
164
          </button>
180
        )}
165
        )}
181
        {link_answers_add && (
-
 
182
          <button
-
 
183
            className="btn feed__share-option"
166
        {link_answers_add && (
184
            onClick={() => onReply(link_edit)}
-
 
185
          >
167
          <button onClick={() => onReply(link_edit)}>
186
            <EditIcon />
168
            <EditIcon />
187
            {labels.reply}
169
            {labels.reply}
188
          </button>
170
          </button>
189
        )}
171
        )}
Línea 194... Línea 176...
194
          >
176
          >
195
            <DeleteIcon />
177
            <DeleteIcon />
196
            {labels.delete}
178
            {labels.delete}
197
          </button>
179
          </button>
198
        )}
180
        )}
199
      </QuestionActions>
181
      </StyledContainer.Actions>
200
    </StyledQuestionCard>
182
    </StyledContainer>
201
  )
183
  )
202
}
184
}
Línea 203... Línea 185...
203
 
185