Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2917 Rev 3002
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
2
import { useDispatch, useSelector } from 'react-redux'
2
import { useDispatch, useSelector } from 'react-redux'
3
import { Box, Typography } from '@mui/material'
3
import { Box, Typography } from '@mui/material'
4
import { ChatOutlined, Edit } from '@mui/icons-material'
4
import { ChatOutlined } from '@mui/icons-material'
Línea 5... Línea 5...
5
 
5
 
6
import { axios } from '@utils'
6
import { axios } from '@utils'
7
import { withReactions } from '@hocs'
7
import { withReactions } from '@hocs'
Línea 113... Línea 113...
113
              {link_delete && (
113
              {link_delete && (
114
                <Options.Item onClick={() => onDelete(link_delete)}>
114
                <Options.Item onClick={() => onDelete(link_delete)}>
115
                  Borrar
115
                  Borrar
116
                </Options.Item>
116
                </Options.Item>
117
              )}
117
              )}
-
 
118
              {link_edit && (
-
 
119
                <Options.Item onClick={() => onEdit(link_edit, text)}>
-
 
120
                  {labels.edit}
-
 
121
                </Options.Item>
-
 
122
              )}
118
            </Options>
123
            </Options>
119
          )}
124
          )}
120
        />
125
        />
Línea 121... Línea 126...
121
 
126
 
Línea 147... Línea 152...
147
            <Button onClick={() => setShowComments(!showComments)}>
152
            <Button onClick={() => setShowComments(!showComments)}>
148
              <ChatOutlined />
153
              <ChatOutlined />
149
              {labels.comment}
154
              {labels.comment}
150
            </Button>
155
            </Button>
151
          )}
156
          )}
152
          {link_edit && (
-
 
153
            <Button onClick={() => onEdit(link_edit, text)}>
-
 
154
              <Edit />
-
 
155
              {labels.edit}
-
 
156
            </Button>
-
 
157
          )}
-
 
158
        </Widget.Actions>
157
        </Widget.Actions>
Línea 159... Línea 158...
159
 
158
 
160
        <Box sx={{ padding: 0.5, display: showComments ? 'block' : 'none' }}>
159
        <Box sx={{ padding: 0.5, display: showComments ? 'block' : 'none' }}>
161
          <CommentForm onSubmit={addComment} />
160
          <CommentForm onSubmit={addComment} />