Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 552 Rev 553
Línea 2... Línea 2...
2
import { axios } from '../../utils'
2
import { axios } from '../../utils'
3
import { addNotification } from '../../redux/notification/notification.actions'
3
import { addNotification } from '../../redux/notification/notification.actions'
4
import { useDispatch, useSelector } from 'react-redux'
4
import { useDispatch, useSelector } from 'react-redux'
5
import EditIcon from '@mui/icons-material/Edit'
5
import EditIcon from '@mui/icons-material/Edit'
6
import DeleteIcon from '@mui/icons-material/Delete'
6
import DeleteIcon from '@mui/icons-material/Delete'
-
 
7
import styled from 'styled-components'
Línea 7... Línea 8...
7
 
8
 
8
import { QuestionStats } from './QuestionCard'
9
import { QuestionStats } from './QuestionCard'
9
import { CommentForm, CommentsList } from '../feed/CommentSection'
10
import { CommentForm, CommentsList } from '../feed/CommentSection'
10
import Paraphrase from '../UI/Paraphrase'
11
import Paraphrase from '../UI/Paraphrase'
11
import StyledContainer from '../widgets/WidgetLayout'
12
import StyledContainer from '../widgets/WidgetLayout'
12
import ReactionsButton from '../UI/buttons/ReactionsButton'
-
 
Línea 13... Línea 13...
13
import styled from 'styled-components'
13
import ReactionsButton from '../UI/buttons/ReactionsButton'
14
 
14
 
-
 
15
const StyledForm = styled(CommentForm)`
-
 
16
  border: 1px solid lightgray;
-
 
17
  background-color: #fff;
-
 
18
  border-radius: 30px;
-
 
19
  padding: 5px;
-
 
20
  padding-left: 1rem;
-
 
21
  flex: 1;
-
 
22
  cursor: pointer;
-
 
23
 
-
 
24
  &:hover {
15
const StyledForm = styled(CommentForm)`
25
    background-color: rgba(0, 0, 0, 0.08);
Línea 16... Línea 26...
16
  margin: 0 5px !important;
26
  }
17
`
27
`
18
 
28
 
Línea 138... Línea 148...
138
                updateReactions(res.total_reactions_question)
148
                updateReactions(res.total_reactions_question)
139
              }}
149
              }}
140
              withLabel
150
              withLabel
141
            />
151
            />
142
          )}
152
          )}
-
 
153
          {link_add_comment && <button></button>}
143
          {link_edit && (
154
          {link_edit && (
144
            <button onClick={() => onEdit(link_edit, text)}>
155
            <button onClick={() => onEdit(link_edit, text)}>
145
              <EditIcon />
156
              <EditIcon />
146
              {labels.edit}
157
              {labels.edit}
147
            </button>
158
            </button>
Línea 151... Línea 162...
151
              <DeleteIcon />
162
              <DeleteIcon />
152
              {labels.delete}
163
              {labels.delete}
153
            </button>
164
            </button>
154
          )}
165
          )}
155
        </StyledContainer.Actions>
166
        </StyledContainer.Actions>
-
 
167
 
156
        <StyledForm image={user_image} onSubmit={addComment} />
168
        <StyledForm image={user_image} onSubmit={addComment} />
157
        <CommentsList comments={comments} onDelete={deleteComment} />
169
        <CommentsList comments={comments} onDelete={deleteComment} />
158
      </StyledContainer>
170
      </StyledContainer>
159
    </>
171
    </>
160
  )
172
  )