Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1507 Rev 1895
Línea 17... Línea 17...
17
  gap: 0.5rem;
17
  gap: 0.5rem;
18
  justify-content: space-around;
18
  justify-content: space-around;
19
  padding: 5px;
19
  padding: 5px;
20
`
20
`
Línea 21... Línea -...
21
 
-
 
22
const StyledQuestionContainer = styled(WidgetWrapper)`
-
 
23
  display: flex;
-
 
24
  flex-direction: column;
-
 
25
  height: 100%;
-
 
26
`
-
 
27
 
-
 
28
const StyledBody = styled(WidgetWrapper.Body)`
-
 
29
  flex: 1 1 0;
-
 
30
`
-
 
31
 
21
 
32
const QuestionCategories = styled.ul`
22
const QuestionCategories = styled.ul`
33
  align-items: center;
23
  align-items: center;
34
  display: flex;
24
  display: flex;
35
  gap: 0.5rem;
25
  gap: 0.5rem;
Línea 76... Línea 66...
76
  const goBack = () => {
66
  const goBack = () => {
77
    history.replace('/my-coach')
67
    history.replace('/my-coach')
78
  }
68
  }
Línea 79... Línea 69...
79
 
69
 
80
  return (
70
  return (
81
    <StyledQuestionContainer>
71
    <WidgetWrapper>
82
      <WidgetWrapper.Header image={user_image} title={user_name}>
72
      <WidgetWrapper.Header image={user_image} title={user_name}>
83
        <QuestionCategories>
73
        <QuestionCategories>
84
          {categories.map(({ category }) => (
74
          {categories.map(({ category }) => (
85
            <li key={category}>{category}</li>
75
            <li key={category}>{category}</li>
86
          ))}
76
          ))}
87
        </QuestionCategories>
77
        </QuestionCategories>
Línea 88... Línea 78...
88
      </WidgetWrapper.Header>
78
      </WidgetWrapper.Header>
89
 
79
 
90
      <StyledBody>
80
      <WidgetWrapper.Body>
91
        <h2>{title}</h2>
81
        <h2>{title}</h2>
92
        <span>{`${labels.my_coach_question} ${added_on}`}</span>
82
        <span>{`${labels.my_coach_question} ${added_on}`}</span>
93
        {last_answer_on ? (
83
        {last_answer_on ? (
94
          <span>{`${labels.my_coach_last_answer} ${last_answer_on}`}</span>
84
          <span>{`${labels.my_coach_last_answer} ${last_answer_on}`}</span>
95
        ) : null}
85
        ) : null}
Línea 96... Línea 86...
96
        <Paraphrase>{description}</Paraphrase>
86
        <Paraphrase>{description}</Paraphrase>
97
      </StyledBody>
87
      </WidgetWrapper.Body>
98
 
88
 
99
      <QuestionStats>
89
      <QuestionStats>
Línea 136... Línea 126...
136
            <DeleteIcon />
126
            <DeleteIcon />
137
            {labels.delete}
127
            {labels.delete}
138
          </button>
128
          </button>
139
        )}
129
        )}
140
      </WidgetWrapper.Actions>
130
      </WidgetWrapper.Actions>
141
    </StyledQuestionContainer>
131
    </WidgetWrapper>
142
  )
132
  )
143
}
133
}
Línea 144... Línea 134...
144
 
134