Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1660 Rev 1661
Línea 5... Línea 5...
5
import { axios } from '@app/utils'
5
import { axios } from '@app/utils'
6
import { addNotification } from '@app/redux/notification/notification.actions'
6
import { addNotification } from '@app/redux/notification/notification.actions'
7
import { removeComment } from '@app/redux/feed/feed.actions'
7
import { removeComment } from '@app/redux/feed/feed.actions'
8
import { showReportModal } from '@app/redux/report/report.actions'
8
import { showReportModal } from '@app/redux/report/report.actions'
Línea 9... Línea 9...
9
 
9
 
10
import { StyledCommentList, StyledCommentTemplate } from './comments-ui'
10
import { CommentsContainer, CommentTemplate } from './comments-ui'
11
import Options from '@app/components/UI/Option'
11
import Options from '@app/components/UI/Option'
Línea 12... Línea 12...
12
import ConfirmModal from '@app/components/modals/ConfirmModal'
12
import ConfirmModal from '@app/components/modals/ConfirmModal'
13
 
13
 
14
export default function CommentsList({ comments }) {
-
 
15
  return (
14
export default function CommentsList({ comments }) {
16
    <>
15
  return (
17
      <StyledCommentList>
-
 
18
        {comments.map((comment) => {
-
 
19
          return (
16
    <CommentsContainer>
20
            <li key={comment.unique}>
-
 
21
              <CommentsList.Item comment={comment} />
-
 
22
            </li>
17
      {comments.map((comment) => (
23
          )
18
        <CommentsList.Item key={comment.unique} comment={comment} />
24
        })}
-
 
25
      </StyledCommentList>
19
      ))}
26
    </>
20
    </CommentsContainer>
Línea 27... Línea 21...
27
  )
21
  )
28
}
22
}
Línea 88... Línea 82...
88
    return options
82
    return options
89
  }, [link_delete, link_abuse_report])
83
  }, [link_delete, link_abuse_report])
Línea 90... Línea 84...
90
 
84
 
91
  return (
85
  return (
92
    <>
86
    <>
93
      <StyledCommentTemplate>
87
      <CommentTemplate>
94
        <div className='content'>
88
        <div className='content'>
95
          <div className='info'>
89
          <div className='info'>
96
            <Link to={user_url}>
90
            <Link to={user_url}>
97
              <h3>{user_name}</h3>
91
              <h3>{user_name}</h3>
Línea 101... Línea 95...
101
 
95
 
Línea 102... Línea 96...
102
          <Options options={actions} />
96
          <Options options={actions} />
103
 
97
 
104
          <p>{content}</p>
98
          <p>{content}</p>
Línea 105... Línea 99...
105
        </div>
99
        </div>
106
      </StyledCommentTemplate>
100
      </CommentTemplate>
107
 
101
 
108
      <ConfirmModal
102
      <ConfirmModal